Skip to content

Commit c3e9793

Browse files
committed
ansible-lint: noqa for no-changed-when
1 parent bd531fc commit c3e9793

File tree

29 files changed

+71
-62
lines changed

29 files changed

+71
-62
lines changed

.ansible-lint

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use_default_rules: true
33

44
skip_list:
55
- name[casing]
6-
- no-changed-when
76

87
exclude_paths:
98
- .github
362 KB
Binary file not shown.

roles/oradb_datapatch/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
- name: oradb_datapatch | Start listener
33
ansible.builtin.shell: "export PATH=${ORACLE_HOME}/bin:${PATH}; lsnrctl start {{ lsnrinst.listener_name }} /dev/null; exit 0"
4+
# noqa no-changed-when
45
environment: "{{ oracle_env_lsnrctl }}"
56
become_user: "{{ oracle_user }}"
67
with_items: "{{ listener_installed }}"

roles/oradb_rman/tasks/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@
212212
- name: Wallet createCredential
213213
ansible.builtin.shell:
214214
cmd: 'echo "$stdin" | {{ oracle_home_db }}/bin/mkstore -wrl "{{ rman_wallet_loc }}" -nologo -createCredential "$rman_tnsalias" "$rman_user" "$rman_password"'
215+
# noqa no-changed-when
215216
become: true
216217
become_user: "{{ oracle_user }}"
217218
environment:
@@ -259,7 +260,7 @@
259260
# The task is only execute once on master_node when GI is installed!
260261
# no catalog connection, because setting initial parameters with catalog takes much more time
261262
- name: Execute RMAN-Script at playbook
262-
# noqa risky-shell-pipe
263+
# noqa risky-shell-pipe no-changed-when
263264
ansible.builtin.shell: "{{ oracle_base }}/bin/rman_backup.sh -a {{ item.1.name }} -s {{ item.0.oracle_db_instance_name | default(item.0.oracle_db_name) }} -r {{ rman_script_dir }} -l {{ rman_log_dir }} | tee -a {{ rman_cron_logdir }}/rman_{{ item.1.name }}.log"
264265
environment:
265266
PATH: /bin:/usr/bin

roles/orahost/tasks/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190

191191
- name: ssh-keys | Generate SSH keys
192192
local_action: shell rm -f /tmp/id_rsa*; ssh-keygen -q -N "" -f /tmp/id_rsa ; chmod +r /tmp/id_rsa; cat /tmp/id_rsa.pub > /tmp/authorized_keys # noqa yaml deprecated-command-syntax deprecated-local-action ignore-errors
193-
# noqa fqcn[action-core]
193+
# noqa fqcn[action-core] no-changed-when
194194
ignore_errors: true
195195
run_once: "{{ configure_cluster }}"
196196
when: configure_ssh and configure_cluster and old_ssh_config
@@ -230,7 +230,7 @@
230230

231231
- name: ssh-keys | Add short name to known_hosts
232232
local_action: shell ssh-keyscan -p {{ ansible_ssh_port | default(22) }} -H {{ ansible_hostname }} 2> /dev/null >> {{ keyfile }} # noqa deprecated-local-action ignore-errors
233-
# noqa fqcn[action-core]
233+
# noqa fqcn[action-core] no-changed-when
234234
ignore_errors: true
235235
become: false
236236
when: configure_ssh and configure_cluster and old_ssh_config
@@ -239,7 +239,7 @@
239239

240240
- name: ssh-keys | Add FQDN to known_hosts
241241
local_action: shell ssh-keyscan -p {{ ansible_ssh_port | default(22) }} -H {{ ansible_fqdn }} 2> /dev/null >> {{ keyfile }} # noqa yaml ignore-errors deprecated-local-action
242-
# noqa fqcn[action-core]
242+
# noqa fqcn[action-core] no-changed-when
243243
ignore_errors: true
244244
become: false
245245
when: configure_ssh and configure_cluster and old_ssh_config
@@ -248,7 +248,7 @@
248248

249249
- name: ssh-keys | Add IPv4 to known_hosts
250250
local_action: shell ssh-keyscan -p {{ ansible_ssh_port | default(22) }} -H {{ ansible_default_ipv4.address }} 2> /dev/null >> {{ keyfile }} # noqa ignore-errors deprecated-local-action
251-
# noqa fqcn[action-core]
251+
# noqa fqcn[action-core] no-changed-when
252252
ignore_errors: true
253253
become: false
254254
when: configure_ssh and configure_cluster and old_ssh_config

roles/orahost_ssh/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
- name: ssh-keys | get public key for grid user
1515
ansible.builtin.shell: cat /home/{{ grid_user }}/.ssh/id_rsa.pub
16-
# noqa command-instead-of-shell
16+
# noqa command-instead-of-shell no-changed-when
1717
register: grid_key
1818
when: role_separation
1919
tags:

roles/orahost_storage/tasks/udev.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,19 @@
2626

2727
- name: udev | Run script to create udev rules
2828
ansible.builtin.shell: "{{ oracle_rsp_stage }}/setup-udev-rules.sh"
29-
# noqa command-instead-of-shell
29+
# noqa command-instead-of-shell no-changed-when
3030
when: device_persistence == 'udev'
3131
tags: udev
3232

3333
- name: udev | Reload rules
3434
ansible.builtin.shell: partprobe;sleep 5; udevadm control --reload-rules; udevadm trigger
35+
# noqa no-changed-when
3536
when: device_persistence == 'udev'
3637
tags: udev
3738

3839
- name: udev | List device aliases (register)
3940
ansible.builtin.shell: ls -l {{ oracle_asm_disk_string }}
40-
# noqa command-instead-of-shell
41+
# noqa command-instead-of-shell no-changed-when
4142
when: device_persistence == 'udev'
4243
tags: udev
4344
register: lsdevice

roles/oraswdb_golden_image/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
- name: Create Golden-Image
2828
ansible.builtin.command: "{{ oracle_home_db }}/runInstaller -silent -createGoldImage -destinationLocation {{ golden_image_dest }}/{{ dbh.home }}"
29+
# noqa no-changed-when
2930
with_items:
3031
- "{{ db_homes_installed | list | unique }}"
3132
loop_control:

roles/oraswdb_install/tasks/11.2.0.3.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
- name: install_home_db | Install Oracle Database Server
4343
ansible.builtin.shell: "{{ oracle_stage_install }}/{{ db_homes_config[dbh.home]['version'] }}/database/runInstaller -responseFile {{ oracle_rsp_stage }}/{{ oracle_db_responsefile }} -ignorePrereq -ignoreSysPrereqs -silent -waitforcompletion"
44-
# noqa yaml command-instead-of-shell
44+
# noqa yaml command-instead-of-shell no-changed-when
4545
become: true
4646
become_user: "{{ oracle_user }}"
4747
run_once: "{{ configure_cluster }}"

roles/oraswdb_install/tasks/11.2.0.4.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
- name: install_home_db | Install Oracle Database Server
4141
ansible.builtin.shell: "{{ oracle_stage_install }}/{{ db_homes_config[dbh.home]['version'] }}/database/runInstaller -responseFile {{ oracle_rsp_stage }}/{{ oracle_db_responsefile }} -ignorePrereq -ignoreSysPrereqs -silent -waitforcompletion"
42-
# noqa yaml command-instead-of-shell
42+
# noqa yaml command-instead-of-shell no-changed-when
4343
become: true
4444
become_user: "{{ oracle_user }}"
4545
run_once: "{{ configure_cluster }}"

0 commit comments

Comments
 (0)