added ansible reconfiguration
This commit is contained in:
14
setup.yml
14
setup.yml
@@ -43,4 +43,16 @@
|
|||||||
key: "{{ item }}"
|
key: "{{ item }}"
|
||||||
loop:
|
loop:
|
||||||
- "{{ lookup( 'file', '~/.ssh/id_rsa.pub' ) }}"
|
- "{{ lookup( 'file', '~/.ssh/id_rsa.pub' ) }}"
|
||||||
- "https://infra.opendoor.fr/id_rsa.pub"
|
- "https://infra.opendoor.fr/id_rsa.pub"
|
||||||
|
|
||||||
|
- name: reconfigure ansible
|
||||||
|
community.general.ini_file:
|
||||||
|
option: "{{ item.option }}"
|
||||||
|
value: "{{ item.value }}"
|
||||||
|
section: "{{ item.section }}"
|
||||||
|
path: /etc/ansible/ansible.cfg
|
||||||
|
loop:
|
||||||
|
- { option: "remote_user", value: "ansible", section: "defaults" }
|
||||||
|
- { option: "become_ask_pass", value: "false", section: "privilege_escalation" }
|
||||||
|
- { option: "ask_pass", value: "false", section: "defaults" }
|
||||||
|
delegate_to: localhost
|
||||||
|
|||||||
Reference in New Issue
Block a user