Signed-off-by: David Galloway <dgallowa@redhat.com>
--- /dev/null
+---
+- hosts: public_facing
+ roles:
+ - public_facing
+ become: true
--- /dev/null
+public_facing
+=============
+
+This role is used to manage the various public-facing hosts we have. Each host has various configs not managed by the ``common`` role. This playbook aims to:
+
+- Provide automation in the event of disaster recovery
+- Automate repeatable tasks
+- Automate 'one-off' host or service nuances
+
+Usage
++++++
+
+Example::
+
+ ansible-playbook public_facing.yml --limit="download.ceph.com"
+
+Variables
++++++++++
+
+For the most part, each host will have its own unique variables. See the playbook comments for details.
--- /dev/null
+---
+# local_action in the task after this causes 'ansible_host' to change to 'localhost'
+# we set a temporary variable here to search for in the local_action task
+- set_fact:
+ target_host: "{{ ansible_host }}"
+
+- name: Check for host-specific playbooks
+ local_action: "stat path=roles/public_facing/tasks/{{ target_host }}.yml"
+ register: host_playbook
+
+- name: Include any host-specific playbooks if present
+ include: "{{ ansible_host }}.yml"
+ when: host_playbook.stat.exists