diff --git a/setup.yml b/setup.yml index 3e4a465..a416195 100644 --- a/setup.yml +++ b/setup.yml @@ -43,4 +43,16 @@ key: "{{ item }}" loop: - "{{ lookup( 'file', '~/.ssh/id_rsa.pub' ) }}" - - "https://infra.opendoor.fr/id_rsa.pub" \ No newline at end of file + - "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