Update playbook infra
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
.ansible
|
.ansible
|
||||||
testing/
|
testing/
|
||||||
|
vault.yml
|
||||||
@@ -1,2 +1,3 @@
|
|||||||
[defaults]
|
[defaults]
|
||||||
inventory = inventories/hosts.ini
|
inventory = inventories/hosts.ini
|
||||||
|
collections_paths = ./collections
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
# Bootstrap Ansible environment
|
# Bootstrap Ansible environment
|
||||||
# Usage: ./bootstrap [--force]
|
# Usage: ./bootstrap [--force]
|
||||||
|
|
||||||
pip install --upgrade pip "$@"
|
python -m ensurepip --upgrade
|
||||||
pip install --upgrade --requirement pip-requirements "$@"
|
pip install --upgrade pip
|
||||||
ansible-galaxy install --role-file galaxy-requirements.yml "$@"
|
pip install --upgrade --requirement requirements "$@"
|
||||||
|
ansible-galaxy install --role-file collections/requirements.yml "$@"
|
||||||
@@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
# ansible-playbook playbook.yml -l testing-remote --ask-vault-pass --ask-become-pass --check --diff
|
# ansible-playbook playbook.yml -l testing-remote --ask-vault-pass --ask-become-pass --check --diff
|
||||||
|
|
||||||
ansible-playbook playbook.yml -l testing-remote --ask-vault-pass --ask-become-pass --diff "$@"
|
ansible-playbook playbook.yml -l workstation-remote-testing --ask-vault-pass --ask-become-pass --diff "$@"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"settings": {
|
"settings": {
|
||||||
"ansible.python.interpreterPath": "/home/bryan/.virtualenvs/deploy/bin/python",
|
"ansible.python.interpreterPath": "/home/bryan/develop/deploy/.venv/bin/python",
|
||||||
"search.followSymlinks": false,
|
"search.followSymlinks": false,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -5,16 +5,18 @@ htpc-remote ansible_host=htpc ansible_user=bryan
|
|||||||
[workstation]
|
[workstation]
|
||||||
workstation-local ansible_connection=local ansible_user=bryan
|
workstation-local ansible_connection=local ansible_user=bryan
|
||||||
workstation-remote ansible_host=workstation ansible_user=bryan
|
workstation-remote ansible_host=workstation ansible_user=bryan
|
||||||
|
workstation-remote-testing ansible_host=vm-fedora43 ansible_user=bryan
|
||||||
|
|
||||||
[laptop]
|
[laptop]
|
||||||
laptop-local ansible_connection=local ansible_user=bryan
|
laptop-local ansible_connection=local ansible_user=bryan
|
||||||
laptop-remote ansible_host=laptop ansible_user=bryan
|
laptop-remote ansible_host=laptop ansible_user=bryan
|
||||||
|
laptop-remote-testing ansible_host=192.168.122.95 ansible_user=bryan
|
||||||
|
|
||||||
[server]
|
[server]
|
||||||
bryanroessler.com ansible_host=bryanroessler.com ansible_user=bryan
|
bryanroessler.com ansible_host=bryanroessler.com ansible_user=bryan
|
||||||
|
|
||||||
[testing]
|
# [testing]
|
||||||
testing-remote ansible_host=192.168.122.205 ansible_user=bryan
|
# testing-remote ansible_host=192.168.122.205 ansible_user=bryan
|
||||||
|
|
||||||
# [desktops:children]
|
# [desktops:children]
|
||||||
# workstation
|
# workstation
|
||||||
|
|||||||
Reference in New Issue
Block a user