+ Playbook for simple echo's
+ Init play for gamma
This commit is contained in:
parent
0782ebf049
commit
c389cfb220
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
|
||||||
|
14
playbooks/athens-common/touch.yml
Normal file
14
playbooks/athens-common/touch.yml
Normal 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
6
playbooks/connect.sh
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# -_-
|
||||||
|
|
||||||
|
|
||||||
|
ssh -F ssh/config -o UserKnownHostsFile=ssh/known_hosts $@
|
13
playbooks/gamma/init.yml
Normal file
13
playbooks/gamma/init.yml
Normal 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user