commit 88900ab716d9c683ea6d68171da1135d85e8c95e
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Tue Feb 6 23:19:26 2018 +0100
Update playbook include
playbooks/include/happy_birthday.yml | 15 +++++++++++++++
playbooks/include/proxies-websites.yml | 4 ++--
2 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/playbooks/include/happy_birthday.yml b/playbooks/include/happy_birthday.yml
new file mode 100644
index 0000000..f9ba7e6
--- /dev/null
+++ b/playbooks/include/happy_birthday.yml
@@ -0,0 +1,15 @@
+- name: handle ssh keys on a hosts birthday (new hw machine)
+ hosts: "{{ myhosts }}"
+ gather_facts: False
+
+ vars_files:
+ - /srv/web/infra/ansible/vars/global.yml
+ - "/srv/private/ansible/vars.yml"
+ - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
+
+ tasks:
+ - import_tasks: "{{ tasks_path }}/happy_birthday.yml"
+
+ handlers:
+ - import_tasks: "{{ handlers_path }}/restart_services.yml"
+
diff --git a/playbooks/include/proxies-websites.yml
b/playbooks/include/proxies-websites.yml
index d01ea87..2d9e52b 100644
--- a/playbooks/include/proxies-websites.yml
+++ b/playbooks/include/proxies-websites.yml
@@ -14,7 +14,7 @@
pre_tasks:
- name: Install policycoreutils-python
- yum: pkg=policycoreutils-python state=present
+ package: name=policycoreutils-python state=present
- name: Create /srv/web/ for all the goodies.
file: >
@@ -27,7 +27,7 @@
- name: check the selinux context of webdir
command: matchpathcon /srv/web
register: webdir
- always_run: yes
+ check_mode: no
changed_when: "1 != 1"
tags:
- config
Show replies by date