wip
This commit is contained in:
parent
e61fe7e3f7
commit
a0ea7b0a3f
18 changed files with 366 additions and 30 deletions
18
ansible/run_ansible_playbook_initial_install.sh
Executable file
18
ansible/run_ansible_playbook_initial_install.sh
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/sh
|
||||
|
||||
workdir="$(pwd)"
|
||||
base="$(realpath $(dirname "$0"))"
|
||||
|
||||
export ANSIBLE_CACHE_PLUGIN=jsonfile
|
||||
export ANSIBLE_CONFIG=$base/ansible.cfg
|
||||
|
||||
cd $base
|
||||
python3 parse_arch_packages.py > arch_packages.json
|
||||
cd $workdir
|
||||
|
||||
ansible-playbook $base/workstation_initial_install.yaml \
|
||||
--ask-become-pass \
|
||||
-u "mbess" \
|
||||
-i "$base/inventory.yaml" \
|
||||
--ssh-extra-args "-o ControlMaster=auto -o ControlPersist=60s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 2222 -i ./master_sshkey" \
|
||||
--extra-vars "@$base/vars.yaml"
|
||||
Loading…
Add table
Add a link
Reference in a new issue