- removing fluff scripts
+ new script to easily pick out playbooks to run
This commit is contained in:
parent
92a450927d
commit
babd9bbe81
4
.gitignore
vendored
4
.gitignore
vendored
@ -8,5 +8,5 @@ infra/out.plan
|
||||
infra/terraform.tfstate
|
||||
infra/terraform.tfstate.backup
|
||||
playbooks/hosts.ini
|
||||
playbooks/ssh/config
|
||||
playbooks/ssh/known_hosts
|
||||
playbooks/.ssh/
|
||||
playbooks/.env/
|
||||
|
@ -3,4 +3,4 @@
|
||||
# -_-
|
||||
|
||||
|
||||
ssh -F ssh/config -o UserKnownHostsFile=ssh/known_hosts $@
|
||||
ssh -F .ssh/config -o UserKnownHostsFile=.ssh/known_hosts $@
|
||||
|
@ -1,13 +0,0 @@
|
||||
# This server is going to have to server as an ansible host
|
||||
#
|
||||
---
|
||||
- hosts: gamma
|
||||
remote_user: ubuntu
|
||||
become: yes
|
||||
become_method: sudo
|
||||
tasks:
|
||||
- name: Update system packages to latest
|
||||
apt:
|
||||
update_cache: yes
|
||||
upgrade: full
|
||||
|
8
playbooks/run-play.sh
Normal file
8
playbooks/run-play.sh
Normal file
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -x
|
||||
|
||||
ansible-playbook \
|
||||
-i hosts.ini \
|
||||
-e @.env/main.yml \
|
||||
--ask-vault-pass \
|
||||
$1
|
Loading…
Reference in New Issue
Block a user