become method defined at host level

main
Ricard Illa 2022-09-06 10:52:10 +02:00
parent e6690ae2d1
commit 91a5a975e1
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,6 @@
- name: snitch deployment
hosts: snitch
become: true
become_method: doas
roles:
- basic
- users
@ -21,7 +20,6 @@
- name: caladan deployment
hosts: caladan
become: true
become_method: doas
roles:
- basic
- users
@ -38,7 +36,6 @@
- name: narwhal deployment
hosts: narwhal
become: true
become_method: sudo
roles:
- basic
- users
@ -53,7 +50,6 @@
- name: fugu deployment
hosts: fugu
become: true
become_method: doas
roles:
- basic
- users

View File

@ -7,21 +7,25 @@ all:
ansible_user: ansible
ansible_port: 22
ansible_python_interpreter: /usr/bin/python3
ansible_become_method: doas
caladan:
ansible_host: caladan
ansible_user: ansible
ansible_port: 22
ansible_python_interpreter: /usr/bin/python3
ansible_become_method: doas
narwhal:
ansible_host: narwhal
ansible_user: ansible
ansible_port: 22
ansible_python_interpreter: /usr/bin/python3
ansible_become_method: sudo
fugu:
ansible_host: fugu
ansible_user: ansible
ansible_port: 22
ansible_python_interpreter: /usr/local/bin/python3
ansible_become_method: doas