Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Double quotes around passwords.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmkraus committed Oct 5, 2020
1 parent 47ff2a3 commit 191dad9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/playbooks/firmware.d/el8000-sw2-ssd/apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
delegate_to: localhost

- name: login to ilo
shell: ilorest -c "{{ config.path }}" login "{{ mgmt_hostname }}" -u "{{ username }}" -p "{{ password }}"
shell: ilorest -c "{{ config.path }}" login "{{ mgmt_hostname }}" -u '{{ username }}' -p '{{ password }}'
changed_when: False
delegate_to: localhost

Expand Down
4 changes: 2 additions & 2 deletions app/playbooks/firmware.d/el8000-sw2-ssd/iloaccount.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
- name: ensure service account exists
block:
- name: creating service account (may fail)
shell: ilorest -c "{{ config.path }}" iloaccounts add {{ mgmt_user }} {{ mgmt_user }} "{{ mgmt_password }}" --addprivs 1,3,6,7,8
shell: ilorest -c "{{ config.path }}" iloaccounts add {{ mgmt_user }} {{ mgmt_user }} '{{ mgmt_password }}' --addprivs 1,3,6,7,8
delegate_to: localhost

rescue:
- name: modifying service account password
shell: ilorest -c "{{ config.path }}" iloaccounts changepass {{ mgmt_user }} "{{ mgmt_password }}"
shell: ilorest -c "{{ config.path }}" iloaccounts changepass {{ mgmt_user }} '{{ mgmt_password }}'
delegate_to: localhost

- name: modifying service account privs
Expand Down
6 changes: 3 additions & 3 deletions app/roles/management/tasks/poweroff/ilo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- name: get ilo server power status
shell: >
hpilo_cli -l "{{ management_user }}" -p "{{ management_pass }}" -j
hpilo_cli -l "{{ management_user }}" -p '{{ management_pass }}' -j
"{{ management_hostname }}" get_host_power_status
delegate_to: localhost
become: no
Expand All @@ -9,15 +9,15 @@

- name: power off ilo server power state
shell: >
hpilo_cli -l "{{ management_user }}" -p "{{ management_pass }}" -y
hpilo_cli -l "{{ management_user }}" -p '{{ management_pass }}' -y
"{{ management_hostname }}" hold_pwr_btn
delegate_to: localhost
become: no
when: "ilo_power_status.stdout != '\"OFF\"'"

- name: wait until ilo server powers off
shell: >
hpilo_cli -l "{{ management_user }}" -p "{{ management_pass }}" -j
hpilo_cli -l "{{ management_user }}" -p '{{ management_pass }}' -j
"{{ management_hostname }}" get_host_power_status
delegate_to: localhost
become: no
Expand Down
6 changes: 3 additions & 3 deletions app/roles/management/tasks/poweron/ilo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- name: get ilo server power status
shell: >
hpilo_cli -l "{{ management_user }}" -p "{{ management_pass }}" -j
hpilo_cli -l "{{ management_user }}" -p '{{ management_pass }}' -j
"{{ management_hostname }}" get_host_power_status
delegate_to: localhost
become: no
Expand All @@ -9,15 +9,15 @@

- name: power on ilo server power state
shell: >
hpilo_cli -l "{{ management_user }}" -p "{{ management_pass }}" -y
hpilo_cli -l "{{ management_user }}" -p '{{ management_pass }}' -y
"{{ management_hostname }}" press_pwr_btn
delegate_to: localhost
become: no
when: "ilo_power_status.stdout != '\"ON\"'"

- name: wait until ilo server powers on
shell: >
hpilo_cli -l "{{ management_user }}" -p "{{ management_pass }}" -j
hpilo_cli -l "{{ management_user }}" -p '{{ management_pass }}' -j
"{{ management_hostname }}" get_host_power_status
delegate_to: localhost
become: no
Expand Down

0 comments on commit 191dad9

Please sign in to comment.