- removing fluff scripts

+ new script to easily pick out playbooks to run
This commit is contained in:
shockrah 2021-12-10 00:47:38 -08:00
parent 92a450927d
commit babd9bbe81
4 changed files with 11 additions and 16 deletions

4
.gitignore vendored
View File

@ -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/

View File

@ -3,4 +3,4 @@
# -_-
ssh -F ssh/config -o UserKnownHostsFile=ssh/known_hosts $@
ssh -F .ssh/config -o UserKnownHostsFile=.ssh/known_hosts $@

View File

@ -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
View File

@ -0,0 +1,8 @@
#!/bin/sh
set -x
ansible-playbook \
-i hosts.ini \
-e @.env/main.yml \
--ask-vault-pass \
$1