You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-9
Original file line number
Diff line number
Diff line change
@@ -27,25 +27,27 @@ This script use env vars configuration to run ansible playbook with ssh proxy on
27
27
*`(ANSIBLE_PLAYBOOK_PATH)`: Path of the ansible playbook to run. Default: `ansible-playbook`.
28
28
*`(DEBUG)`: Run in debug mode
29
29
30
-
ec2.py vars:
30
+
ec2 vars:
31
31
*`(AWS_INVENTORY)`: If the Amazon EC2 dynamic inventory need to be used or no, can be eiter `true`, `false` or `auto`. `auto` checks if `AWS_ACCESS_KEY_ID` is set or not. Default: `auto`.
32
32
*`(AWS_ACCESS_KEY_ID)`: Used by Amazon EC2 dynamic inventory
33
33
*`(AWS_SECRET_ACCESS_KEY)`: Used by Amazon EC2 dynamic inventory
34
34
*`(EC2_VPC_DESTINATION_VARIABLE)`: Can be either `ip_address` for public ip address or `private_ip_address`, see [ec2.ini](https://github.com/ansible/ansible/blob/devel/contrib/inventory/ec2.ini). Default: `private_ip_address`.
35
35
36
-
azure_rm.py vars:
36
+
azure_rm vars:
37
37
*`(AZURE_INVENTORY)`: If the Azure dynamic inventory need to be used or no, can be eiter `true`, `false` or `auto`. `auto` checks if `AZURE_SUBSCRIPTION_ID` is set or not. Default: `auto`.
38
38
*`(AZURE_SUBSCRIPTION_ID)`: Used by Azure dynamic inventory
39
39
*`(AZURE_TENANT_ID)`: Used by Azure dynamic inventory
40
40
*`(AZURE_CLIENT_ID)`: Used by Azure dynamic inventory
41
41
*`(AZURE_SECRET)`: Used by Azure dynamic inventory
42
42
*`(AZURE_USE_PRIVATE_IP)`: Can be either `True` or `False`, see [azure_rm.py](https://raw.githubusercontent.com/ansible/ansible/devel/contrib/inventory/azure_rm.py). Default: `True`.
43
+
*`(ANSIBLE_PLUGIN_AZURE_PLAIN_HOST_NAMES)`: By default this plugin will use globally unique host names. This option allows you to override that, and use the name that matches the old inventory script naming.. Default: `False`.
44
+
note: Ansible `azure_rm` plugin is used for ansible `>= 2.8` else `azure_rm.py` script will be used
43
45
44
46
Example of pipeline configuration :
45
47
46
48
**YAML anchors**
47
49
48
-
```
50
+
```YAML
49
51
shared:
50
52
- &run-ansible-from-bastion
51
53
config:
@@ -66,7 +68,7 @@ shared:
66
68
67
69
**usage**
68
70
69
-
```
71
+
```YAML
70
72
- task: run-ansible
71
73
<<: *run-ansible-from-bastion
72
74
params:
@@ -98,7 +100,7 @@ Example of pipeline configuration :
98
100
99
101
**YAML anchors**
100
102
101
-
```
103
+
```YAML
102
104
shared:
103
105
- &aws-ami-cleaner
104
106
task: aws-ami-cleaner
@@ -136,7 +138,7 @@ Example of pipeline configuration :
136
138
137
139
**YAML anchors**
138
140
139
-
```
141
+
```YAML
140
142
shared:
141
143
- &aws-ecr-cleaner
142
144
task: aws-ecr-cleaner
@@ -178,7 +180,7 @@ Example of pipeline configuration :
178
180
179
181
**YAML anchors**
180
182
181
-
```
183
+
```YAML
182
184
shared:
183
185
- &vault-approle-login
184
186
task: vault-approle-login
@@ -215,7 +217,7 @@ This script use env vars configuration to merge stack and config for Cycloid.io.
Copy file name to clipboardExpand all lines: files/ansible/hosts-template/default.azure_rm.yml.template
+3
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,9 @@ hostvar_expressions:
48
48
# if none are found, the first public IP address.
49
49
ansible_host: $ANSIBLE_PLUGIN_AZURE_HOST
50
50
51
+
# By default this plugin will use globally unique host names. This option allows you to override that, and use the name that matches the old inventory script naming.
Copy file name to clipboardExpand all lines: scripts/ansible-runner
+18-7
Original file line number
Diff line number
Diff line change
@@ -27,19 +27,21 @@ usage()
27
27
echo' * `(ANSIBLE_PLAYBOOK_PATH)`: Path of the ansible playbook to run. Default: `ansible-playbook`.'
28
28
echo' * `(DEBUG)`: Run in debug mode'
29
29
echo''
30
-
echo'ec2.py vars:'
30
+
echo'ec2 vars:'
31
31
echo' * `(AWS_INVENTORY)`: If the Amazon EC2 dynamic inventory need to be used or no, can be eiter `true`, `false` or `auto`. `auto` checks if `AWS_ACCESS_KEY_ID` is set or not. Default: `auto`.'
32
32
echo' * `(AWS_ACCESS_KEY_ID)`: Used by Amazon EC2 dynamic inventory'
33
33
echo' * `(AWS_SECRET_ACCESS_KEY)`: Used by Amazon EC2 dynamic inventory'
34
34
echo' * `(EC2_VPC_DESTINATION_VARIABLE)`: Can be either `ip_address` for public ip address or `private_ip_address`, see [ec2.ini](https://github.com/ansible/ansible/blob/devel/contrib/inventory/ec2.ini). Default: `private_ip_address`.'
35
35
echo''
36
-
echo'azure_rm.py vars:'
36
+
echo'azure_rm vars:'
37
37
echo' * `(AZURE_INVENTORY)`: If the Azure dynamic inventory need to be used or no, can be eiter `true`, `false` or `auto`. `auto` checks if `AZURE_SUBSCRIPTION_ID` is set or not. Default: `auto`.'
38
38
echo' * `(AZURE_SUBSCRIPTION_ID)`: Used by Azure dynamic inventory'
39
39
echo' * `(AZURE_TENANT_ID)`: Used by Azure dynamic inventory'
40
40
echo' * `(AZURE_CLIENT_ID)`: Used by Azure dynamic inventory'
41
41
echo' * `(AZURE_SECRET)`: Used by Azure dynamic inventory'
42
42
echo' * `(AZURE_USE_PRIVATE_IP)`: Can be either `True` or `False`, see [azure_rm.py](https://raw.githubusercontent.com/ansible/ansible/devel/contrib/inventory/azure_rm.py). Default: `True`.'
43
+
echo' * `(ANSIBLE_PLUGIN_AZURE_PLAIN_HOST_NAMES)`: By default this plugin will use globally unique host names. This option allows you to override that, and use the name that matches the old inventory script naming.. Default: `False`.'
44
+
echo' note: Ansible `azure_rm` plugin is used for ansible `>= 2.8` else `azure_rm.py` script will be used'
0 commit comments