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
- sshd
- wifi
- lbu_commit
vars:
users:
- rilla
- ansible
use_lbu: true
post_tasks:
- name: lbu commit
lbu:
commit: true
- name: caladan deployment
hosts: caladan
@ -31,7 +27,6 @@
- rilla
- ansible
- woodpecker
use_lbu: false
- name: narwhal deployment
hosts: narwhal

View File

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

View File

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