refactor lbu commit into a role

main
Ricard Illa 2022-09-06 11:02:28 +02:00
parent 91a5a975e1
commit dd7ae7c64b
3 changed files with 8 additions and 6 deletions

View File

@ -7,15 +7,11 @@
- users - users
- sshd - sshd
- wifi - wifi
- lbu_commit
vars: vars:
users: users:
- rilla - rilla
- ansible - ansible
use_lbu: true
post_tasks:
- name: lbu commit
lbu:
commit: true
- name: caladan deployment - name: caladan deployment
hosts: caladan hosts: caladan
@ -31,7 +27,6 @@
- rilla - rilla
- ansible - ansible
- woodpecker - woodpecker
use_lbu: false
- name: narwhal deployment - name: narwhal deployment
hosts: narwhal hosts: narwhal

View File

@ -8,6 +8,7 @@ all:
ansible_port: 22 ansible_port: 22
ansible_python_interpreter: /usr/bin/python3 ansible_python_interpreter: /usr/bin/python3
ansible_become_method: doas ansible_become_method: doas
use_lbu: true
caladan: caladan:
ansible_host: caladan ansible_host: caladan
@ -15,6 +16,7 @@ all:
ansible_port: 22 ansible_port: 22
ansible_python_interpreter: /usr/bin/python3 ansible_python_interpreter: /usr/bin/python3
ansible_become_method: doas ansible_become_method: doas
use_lbu: false
narwhal: narwhal:
ansible_host: narwhal ansible_host: narwhal

View File

@ -0,0 +1,5 @@
---
- name: lbu commit
lbu:
commit: true
when: ansible_distribution == "Alpine" and use_lbu