Started adding odo linux to ansible.
This commit is contained in:
parent
0f8bf0b723
commit
a271d1c756
12
ansible/environments/laptop/host_vars/odolinux
Normal file
12
ansible/environments/laptop/host_vars/odolinux
Normal 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
|
2
ansible/environments/laptop/hosts
Normal file
2
ansible/environments/laptop/hosts
Normal file
@ -0,0 +1,2 @@
|
||||
[gui]
|
||||
odolinux ansible_connection=local ansible_host=127.0.0.1
|
@ -3,7 +3,7 @@
|
||||
package:
|
||||
name:
|
||||
- zsh
|
||||
- py39-jmespath # Needed for json_query
|
||||
- py39-jmespath # Needed on machine running ansible for json_query
|
||||
state: present
|
||||
|
||||
- name: Install packages
|
||||
@ -11,7 +11,7 @@
|
||||
package:
|
||||
name:
|
||||
- zsh
|
||||
- python-jmespath # Needed for json_query
|
||||
- python-jmespath # Needed on machine running ansible for json_query
|
||||
state: present
|
||||
|
||||
- name: Create group
|
||||
|
@ -18,8 +18,8 @@ shift 1
|
||||
|
||||
if [ "$target" = "homeserver" ]; then
|
||||
ansible-playbook -v -i environments/home playbook.yaml --diff --limit homeserver "${@}"
|
||||
elif [ "$target" = "dummy" ]; then
|
||||
echo "dummy"
|
||||
elif [ "$target" = "odolinux" ]; then
|
||||
ansible-playbook -v -i environments/laptop playbook.yaml --diff --limit odolinux "${@}"
|
||||
else
|
||||
die 1 "Unrecognized target"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user