mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Add support for OS X CI on Shippable. (#17160)
This commit is contained in:
parent
92c6283e93
commit
a695e18615
5 changed files with 79 additions and 33 deletions
|
@ -285,6 +285,7 @@ def make_inventory(inventory_template, connection, instance_id):
|
|||
inventory = template\
|
||||
.replace('@instance_id', instance_id)\
|
||||
.replace('@ansible_host', connection['hostname'])\
|
||||
.replace('@ansible_port', str(connection.get('port', 22)))\
|
||||
.replace('@ansible_user', connection['username'])\
|
||||
.replace('@ansible_password', connection.get('password', ''))
|
||||
|
||||
|
@ -331,7 +332,7 @@ class HttpRequest:
|
|||
return self.request('PUT', url, data, headers)
|
||||
|
||||
def request(self, method, url, data=None, headers=None):
|
||||
args = ['/usr/bin/curl', '-s', '-i', '-X', method]
|
||||
args = ['/usr/bin/curl', '-s', '-S', '-i', '-X', method]
|
||||
|
||||
if headers is not None:
|
||||
for header in headers:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue