From 1c96c6b945593d1198ce72de20d7bff9760248ea Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Sun, 16 Jun 2024 00:08:18 +0200 Subject: [PATCH] chore(ansible): add command to snippets --- snippets/ansible.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/snippets/ansible.sh b/snippets/ansible.sh index 5a8f265..a17acc1 100644 --- a/snippets/ansible.sh +++ b/snippets/ansible.sh @@ -25,9 +25,11 @@ ansible-galaxy role init 'my_role' ansible-galaxy role init --type 'container' --init-path 'gitlab' 'name' # Apply changes. +ansible-playbook -DK 'ansible/playbooks/local-network.hosts.configure.yml' \ + -i 'inventory/local-network.ini' -l 'workstation.lan' -c 'local' -C ansible-playbook 'gitlab.yml' \ -i 'aws_ec2.yml' -e 'ansible_aws_ssm_plugin=/usr/local/sessionmanagerplugin/bin/session-manager-plugin' \ -D --step ansible-playbook 'prometheus.yml' \ -i 'aws_ec2.yml' -e 'ansible_aws_ssm_plugin=/usr/local/sessionmanagerplugin/bin/session-manager-plugin' \ - -D -t 'cron' -l 'i-0123456789abcdef0 -C + -D -t 'cron' -l 'i-0123456789abcdef0' -C