Skip to content

Commit

Permalink
Lia fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennifer-John committed May 14, 2024
1 parent 2512e57 commit 509c1ce
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions roles/powerflex_lia/tasks/install_lia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,15 @@
- name: Include install_powerflex.yml
ansible.builtin.include_tasks: ../../powerflex_common/tasks/install_powerflex.yml

- name: Check if /opt/emc/scaleio/lia/cfg/conf.txt exists
ansible.builtin.stat:
path: /opt/emc/scaleio/lia/cfg/conf.txt
register: powerflex_lia_conf_file_stat

- name: Update lia_mtls_only

Check failure on line 29 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.11, stable-2.16)

command-instead-of-module

sed used in place of template, replace or lineinfile module

Check failure on line 29 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.11, stable-2.16)

no-changed-when

Commands should not change things if nothing needs doing.

Check failure on line 29 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.11, devel)

command-instead-of-module

sed used in place of template, replace or lineinfile module

Check failure on line 29 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.11, devel)

no-changed-when

Commands should not change things if nothing needs doing.

Check failure on line 29 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.10, stable-2.16)

command-instead-of-module

sed used in place of template, replace or lineinfile module

Check failure on line 29 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.10, stable-2.16)

no-changed-when

Commands should not change things if nothing needs doing.

Check failure on line 29 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.11, stable-2.15)

command-instead-of-module

sed used in place of template, replace or lineinfile module

Check failure on line 29 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.11, stable-2.15)

no-changed-when

Commands should not change things if nothing needs doing.

Check failure on line 29 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.9, stable-2.14)

command-instead-of-module

sed used in place of template, replace or lineinfile module

Check failure on line 29 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.9, stable-2.14)

no-changed-when

Commands should not change things if nothing needs doing.

Check failure on line 29 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.10, stable-2.14)

command-instead-of-module

sed used in place of template, replace or lineinfile module

Check failure on line 29 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.10, stable-2.14)

no-changed-when

Commands should not change things if nothing needs doing.

Check failure on line 29 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.10, stable-2.15)

command-instead-of-module

sed used in place of template, replace or lineinfile module

Check failure on line 29 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.10, stable-2.15)

no-changed-when

Commands should not change things if nothing needs doing.

Check failure on line 29 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.10, devel)

command-instead-of-module

sed used in place of template, replace or lineinfile module

Check failure on line 29 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.10, devel)

no-changed-when

Commands should not change things if nothing needs doing.

Check failure on line 29 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.9, stable-2.15)

command-instead-of-module

sed used in place of template, replace or lineinfile module

Check failure on line 29 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.9, stable-2.15)

no-changed-when

Commands should not change things if nothing needs doing.

Check failure on line 29 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.11, stable-2.14)

command-instead-of-module

sed used in place of template, replace or lineinfile module

Check failure on line 29 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.11, stable-2.14)

no-changed-when

Commands should not change things if nothing needs doing.
ansible.builtin.shell: sed -i '/lia_mtls_only=1/d' /opt/emc/scaleio/lia/cfg/conf.txt; pkill lia
when: powerflex_lia_conf_file_stat.stat.exists

- name: Update lia password

Check failure on line 33 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.11, stable-2.16)

no-changed-when

Commands should not change things if nothing needs doing.

Check failure on line 33 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.11, devel)

no-changed-when

Commands should not change things if nothing needs doing.

Check failure on line 33 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.10, stable-2.16)

no-changed-when

Commands should not change things if nothing needs doing.

Check failure on line 33 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.11, stable-2.15)

no-changed-when

Commands should not change things if nothing needs doing.

Check failure on line 33 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.9, stable-2.14)

no-changed-when

Commands should not change things if nothing needs doing.

Check failure on line 33 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.10, stable-2.14)

no-changed-when

Commands should not change things if nothing needs doing.

Check failure on line 33 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.10, stable-2.15)

no-changed-when

Commands should not change things if nothing needs doing.

Check failure on line 33 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.10, devel)

no-changed-when

Commands should not change things if nothing needs doing.

Check failure on line 33 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.9, stable-2.15)

no-changed-when

Commands should not change things if nothing needs doing.

Check failure on line 33 in roles/powerflex_lia/tasks/install_lia.yml

View workflow job for this annotation

GitHub Actions / Ansible lint (3.11, stable-2.14)

no-changed-when

Commands should not change things if nothing needs doing.
ansible.builtin.shell: liapass="{{ powerflex_lia_token }}"; sed -i "s/^lia_token=.*/lia_token=$liapass/" /opt/emc/scaleio/lia/cfg/conf.txt; pkill lia
when: powerflex_lia_conf_file_stat.stat.exists

0 comments on commit 509c1ce

Please sign in to comment.