This commit is contained in:
Michael Schlapa
2020-03-18 09:39:34 +01:00
parent 3f7cd55ed8
commit d3b9b742b0
2 changed files with 26 additions and 2 deletions

24
Ansible/AWX.md Normal file
View File

@@ -0,0 +1,24 @@
# Ansible and AWX
## Problems when using network modules
```yaml
---
- hosts: any
vars:
aci_login: &aci_login
hostname: '{{ ansible_host }}'
username: '{{ lookup("env", "ANSIBLE_NET_USERNAME") | default(ansible_user, true) }}'
password: '{{ lookup("env", "ANSIBLE_NET_PASSWORD") | default(ansible_password, true) }}'
validate_certs: no
tasks:
- name: Query EPGs
aci_epg:
<<: *aci_login
tenant: '{{ tenant_name | default(omit) }}'
app_profile: '{{ app_profile_name | default(omit) }}'
bd: '{{ bd_name | default(omit) }}'
epg: '{{ epg_name | default(omit) }}'
state: "{{ state | default('query') }}"
```

View File

@@ -6,6 +6,6 @@
* [!?!]()
* [OpenSSL](./OpenSSL.md)
* [docker](./docker.md)
* [Ansible](./Ansible.md)
* [!?!]()
* [Ansible](./Ansible/README.md)
* [AWX](./Ansible/AWX.md)
* ...