From 2293051d22a490b794d3c9b7e58c05a63b20c8fc Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Sun, 7 Apr 2019 11:37:31 -0700 Subject: [PATCH] Updatred the hosts file and starting windows testing ignoring hosts as sensitive data will be stored in it. Copy hosts.template to hosts and update the file for local use. --- .gitignore | 4 +++- hosts.template | 18 ++++++++++++++++++ playbook/linux/docker/deployOwnCloud.yml | 12 ++++++++++++ playbook/windows/InstallSecurityUpdates.yml | 7 +++++++ 4 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 hosts.template create mode 100644 playbook/linux/docker/deployOwnCloud.yml create mode 100644 playbook/windows/InstallSecurityUpdates.yml diff --git a/.gitignore b/.gitignore index 2d50efe..b008bae 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -*.retry \ No newline at end of file +*.retry +.DS_Store +hosts diff --git a/hosts.template b/hosts.template new file mode 100644 index 0000000..4db46c5 --- /dev/null +++ b/hosts.template @@ -0,0 +1,18 @@ +[linux] +192.168.0.60 + +[linux:vars] +ansible_user=ansible +ansible_connection=ssh +ansible_password= + +[windows] +192.168.0.2 + +[windows:vars] +ansible_user=ansible +ansible_password= +ansible_connection=winrm +ansible_port=5986 +ansible_winrm_scheme=https +ansible_winrm_server_cert_validation=ignore diff --git a/playbook/linux/docker/deployOwnCloud.yml b/playbook/linux/docker/deployOwnCloud.yml new file mode 100644 index 0000000..30093c0 --- /dev/null +++ b/playbook/linux/docker/deployOwnCloud.yml @@ -0,0 +1,12 @@ + +- name: Deploy OwnCloud + hosts: linux + become_method: sudo + + tasks: + - name: Check if docker is installed. + apt: + name: docker + state: present + + \ No newline at end of file diff --git a/playbook/windows/InstallSecurityUpdates.yml b/playbook/windows/InstallSecurityUpdates.yml new file mode 100644 index 0000000..dc0947d --- /dev/null +++ b/playbook/windows/InstallSecurityUpdates.yml @@ -0,0 +1,7 @@ + +- name: Check for updates + hosts: windows + + tasks: + - name: +