+ Playbook for simple echo's

+ Init play for gamma
This commit is contained in:
shockrah 2021-11-26 22:01:25 -08:00
parent 0782ebf049
commit c389cfb220
4 changed files with 34 additions and 0 deletions

1
.gitignore vendored
View File

@ -9,3 +9,4 @@ infra/terraform.tfstate
infra/terraform.tfstate.backup infra/terraform.tfstate.backup
playbooks/hosts.ini playbooks/hosts.ini
playbooks/ssh/config playbooks/ssh/config
playbooks/ssh/known_hosts

View File

@ -0,0 +1,14 @@
# This is purely here to check if things are
# working properly
---
- hosts: alpha, beta, gamma, sigma
remote_user: ubuntu
tasks:
- name: Echo
shell: echo 'asdfasdfasdf'
- name: Sample web request
get_url:
url: https://google.com

6
playbooks/connect.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/sh
# -_-
ssh -F ssh/config -o UserKnownHostsFile=ssh/known_hosts $@

13
playbooks/gamma/init.yml Normal file
View File

@ -0,0 +1,13 @@
# 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