From 501fa168cf7f0efda0509724f973b1f25d4ebc58 Mon Sep 17 00:00:00 2001 From: Nick White Date: Thu, 3 Jan 2019 16:08:39 +0000 Subject: Add a host --- host_vars/devami1 | 6 ++++++ hosts | 2 ++ site.yml | 8 ++++++++ 3 files changed, 16 insertions(+) create mode 100644 host_vars/devami1 create mode 100644 hosts create mode 100644 site.yml 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 -- cgit v1.2.1-24-ge1ad