summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/config-osa/tasks/fix_rescue.yml
diff options
context:
space:
mode:
authorYifei Xue <xueyifei@huawei.com>2017-12-08 06:10:13 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-12-08 06:10:13 +0000
commit5fbadc0b9b5d8726050906d0923abfe7ea5ce1c0 (patch)
tree132705edc83b8caecba54e51c7539e902d8b94e5 /deploy/adapters/ansible/roles/config-osa/tasks/fix_rescue.yml
parent199d9e9cc7aeee88c271f835dfb12433e8d10f85 (diff)
parent3fa627b6048c4aa17b4cf3d641a4ea60465c7cef (diff)
Merge "Add CentOS 7.4 support for OpenStack Pike"
Diffstat (limited to 'deploy/adapters/ansible/roles/config-osa/tasks/fix_rescue.yml')
-rw-r--r--deploy/adapters/ansible/roles/config-osa/tasks/fix_rescue.yml43
1 files changed, 43 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/config-osa/tasks/fix_rescue.yml b/deploy/adapters/ansible/roles/config-osa/tasks/fix_rescue.yml
new file mode 100644
index 00000000..eea06b48
--- /dev/null
+++ b/deploy/adapters/ansible/roles/config-osa/tasks/fix_rescue.yml
@@ -0,0 +1,43 @@
+---
+
+- name: fix rescue problem for openstack-hosts-setup
+ blockinfile:
+ dest: "/opt/openstack-ansible/playbooks/openstack-hosts-setup.yml"
+ block: |
+ - hosts: localhost
+ user: root
+ tasks:
+ - name: Mark openstack-hosts-setup completed
+ shell: echo "Setup openstack-hosts-setup completed!"
+
+- name: delete max_fail_percentage for openstack-hosts-setup
+ lineinfile:
+ dest: "/opt/openstack-ansible/playbooks/openstack-hosts-setup.yml"
+ regexp: "max_fail_percentage*"
+ state: absent
+
+- name: fix rescue problem for security-hardening
+ blockinfile:
+ dest: "/opt/openstack-ansible/playbooks/security-hardening.yml"
+ block: |
+ - hosts: localhost
+ user: root
+ tasks:
+ - name: Mark security-hardening completed
+ shell: echo "Setup security-hardening completed!"
+
+- name: fix rescue problem for lxc-hosts-setup
+ blockinfile:
+ dest: "/opt/openstack-ansible/playbooks/lxc-hosts-setup.yml"
+ block: |
+ - hosts: localhost
+ user: root
+ tasks:
+ - name: Mark lxc-hosts-setup completed
+ shell: echo "Setup lxc-hosts-setup completed!"
+
+- name: delete max_fail_percentage for lxc-hosts-setup
+ lineinfile:
+ dest: "/opt/openstack-ansible/playbooks/lxc-hosts-setup.yml"
+ regexp: "max_fail_percentage*"
+ state: absent