aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/config-osa/tasks/fix_rescue.yml
blob: ff7d4250410c9e6c5616a2cb00baf713de709b3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---

- 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

- name: fix rescue problem for setup-openstack
  blockinfile:
    dest: "/opt/openstack-ansible/playbooks/setup-openstack.yml"
    block: |
      - hosts: localhost
        user: root
        tasks:
          - name: Mark setup-openstack completed
            shell: echo "Setup openstack completed!"