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:
|
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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user