Started adding odo linux to ansible.

This commit is contained in:
Tom Alexander 2022-10-10 21:50:39 -04:00
parent 0f8bf0b723
commit a271d1c756
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
4 changed files with 18 additions and 4 deletions

View File

@ -0,0 +1,12 @@
os_flavor: "linux"
users:
talexander:
per_user: true
initialize: true
uid: 11235
gid: 1000
groups:
- name: wheel
- name: users
- name: docker
- name: libvirt

View File

@ -0,0 +1,2 @@
[gui]
odolinux ansible_connection=local ansible_host=127.0.0.1

View File

@ -3,7 +3,7 @@
package: package:
name: name:
- zsh - zsh
- py39-jmespath # Needed for json_query - py39-jmespath # Needed on machine running ansible for json_query
state: present state: present
- name: Install packages - name: Install packages
@ -11,7 +11,7 @@
package: package:
name: name:
- zsh - zsh
- python-jmespath # Needed for json_query - python-jmespath # Needed on machine running ansible for json_query
state: present state: present
- name: Create group - name: Create group

View File

@ -18,8 +18,8 @@ shift 1
if [ "$target" = "homeserver" ]; then if [ "$target" = "homeserver" ]; then
ansible-playbook -v -i environments/home playbook.yaml --diff --limit homeserver "${@}" ansible-playbook -v -i environments/home playbook.yaml --diff --limit homeserver "${@}"
elif [ "$target" = "dummy" ]; then elif [ "$target" = "odolinux" ]; then
echo "dummy" ansible-playbook -v -i environments/laptop playbook.yaml --diff --limit odolinux "${@}"
else else
die 1 "Unrecognized target" die 1 "Unrecognized target"
fi fi