From b5e6d2d2eafc698ae10ebb9e5ed731074f1b2912 Mon Sep 17 00:00:00 2001 From: haroldwongms Date: Thu, 28 Feb 2019 17:13:02 -0700 Subject: [PATCH] new playbook - update project request message --- add-project-request-message.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 add-project-request-message.yaml diff --git a/add-project-request-message.yaml b/add-project-request-message.yaml new file mode 100644 index 0000000..9848889 --- /dev/null +++ b/add-project-request-message.yaml @@ -0,0 +1,21 @@ +#!/usr/bin/ansible-playbook +- hosts: masters + serial: 1 + gather_facts: no + become: yes + handlers: + - name: restart atomic-openshift-master-api + command: /usr/local/bin/master-restart api + + - name: restart atomic-openshift-master-controllers + command: /usr/local/bin/master-restart controllers + + tasks: + - name: insert Project Request Message info into master-config.yaml + blockinfile: + path: /etc/origin/master/master-config.yaml + insertafter: 'projectConfig:' + block: "{{ lookup('file', '/home/{{ admin_user }}/openshift-container-platform-playbooks/projectreqmsg.yaml') }}" + notify: + - restart atomic-openshift-master-api + - restart atomic-openshift-master-controllers