summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-01-03 16:08:39 +0000
committerNick White <git@njw.name>2019-01-03 16:08:39 +0000
commit501fa168cf7f0efda0509724f973b1f25d4ebc58 (patch)
tree8f7c34c0a501d5c6dc8ad40dc68df019fe5412b7
Add a host
-rw-r--r--host_vars/devami16
-rw-r--r--hosts2
-rw-r--r--site.yml8
3 files changed, 16 insertions, 0 deletions
diff --git a/host_vars/devami1 b/host_vars/devami1
new file mode 100644
index 0000000..430bc65
--- /dev/null
+++ b/host_vars/devami1
@@ -0,0 +1,6 @@
+---
+ansible_host: ec2-3-8-40-197.eu-west-2.compute.amazonaws.com
+ansible_user: ec2-user
+ansible_ssh_private_key_file: ~/rescribe/2018-naturalphilosophy/aws/awsdev2.pem
+# note: may need to set control_path in ~/.ansible.cfg as described at
+# https://stackoverflow.com/questions/35970686/ansible-ssh-error-unix-listener-too-long-for-unix-domain-socket
diff --git a/hosts b/hosts
new file mode 100644
index 0000000..a73c7f2
--- /dev/null
+++ b/hosts
@@ -0,0 +1,2 @@
+[devami]
+devami1
diff --git a/site.yml b/site.yml
new file mode 100644
index 0000000..2261621
--- /dev/null
+++ b/site.yml
@@ -0,0 +1,8 @@
+---
+
+- name: Configure devami servers
+ hosts: devami
+ become: yes
+
+ roles:
+ - devami