Skip to content

Commit

Permalink
ansible-lint: fqcn[action-core] for ansible.builtin.yum due to OL7 co…
Browse files Browse the repository at this point in the history
…mpatibility
  • Loading branch information
Rendanic committed Aug 27, 2024
1 parent 301f75f commit 5c25b01
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 12 deletions.
3 changes: 3 additions & 0 deletions changelogs/fragments/ansible-lint2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- "ansible-lint: fqcn[action-core] for ansible.builtin.yum due to OL7 compatibility ()"
4 changes: 2 additions & 2 deletions example/rac/ansible/playbooks/os_racattack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
{% endfor %}
- name: List availible updates
ansible.builtin.yum:
ansible.builtin.yum: # noqa fqcn[action-core]
list: updates
update_cache: true
security: true
Expand All @@ -40,7 +40,7 @@
var: yum_update_list_res.results | map(attribute='name') | sort

- name: Update all OS packages to latest
ansible.builtin.yum: # noqa: package-latest
ansible.builtin.yum: # noqa: package-latest fqcn[action-core]
name: '*'
state: latest
lock_timeout: 600
Expand Down
4 changes: 2 additions & 2 deletions roles/common/tasks/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
key: https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-{{ ansible_distribution_major_version }}

- name: Add EPEL Repo
ansible.builtin.yum:
ansible.builtin.yum: # noqa fqcn[action-core]
name: "{{ _common_epel_rpm }}"
state: installed

Expand Down Expand Up @@ -43,7 +43,7 @@
- olrepo

- name: Install common packages OL/RHEL
ansible.builtin.yum:
ansible.builtin.yum: # noqa fqcn[action-core]
name: "{{ common_packages }}"
state: installed
when:
Expand Down
6 changes: 3 additions & 3 deletions roles/orahost/tasks/RedHat.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
# OL8/RHEL8 has all needed RPMs in orahost role!
- name: Install packages required by Oracle on OL/RHEL version 6,7,8,9
ansible.builtin.yum:
ansible.builtin.yum: # noqa fqcn[action-core]
name: "{{ oracle_packages }}"
state: installed
enablerepo: "{{ extrarepos_enabled | default(omit, True) }}"
Expand All @@ -13,7 +13,7 @@
notify: Reboot concerning package updates

- name: Install packages required by Oracle for ASMlib on OL/RHEL
ansible.builtin.yum:
ansible.builtin.yum: # noqa fqcn[action-core]
name: "{{ oracle_asm_packages }}"
state: installed
enablerepo: "{{ extrarepos_enabled | default(omit, True) }}"
Expand All @@ -30,7 +30,7 @@
- disable_firewall
block:
- name: Check if firewall is installed
ansible.builtin.yum:
ansible.builtin.yum: # noqa fqcn[action-core]
list: "{{ firewall_service }}"
disablerepo: "*"
tags: iptables,firewalld
Expand Down
2 changes: 1 addition & 1 deletion roles/oraswgi_install/tasks/12.1.0.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

- name: install_home_gi | Install cvuqdisk rpm
# noqa ignore-errors
ansible.builtin.yum:
ansible.builtin.yum: # noqa fqcn[action-core]
name: "{{ oracle_stage_install }}/{{ oracle_install_version_gi }}/grid/rpm/{{ cvuqdisk_rpm }}"
state: present
when: _oraswgi_meta_configure_cluster
Expand Down
2 changes: 1 addition & 1 deletion roles/oraswgi_install/tasks/12.1.0.2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
when: oracle_home_gi not in checkgiinstall.stdout and oracle_install_version_gi == item.version and not oracle_sw_copy and oracle_sw_unpack

- name: install_home_gi | Install cvuqdisk rpm
ansible.builtin.yum:
ansible.builtin.yum: # noqa fqcn[action-core]
name: "{{ oracle_stage_install }}/{{ oracle_install_version_gi }}/grid/rpm/{{ cvuqdisk_rpm }}"
state: present
# noqa ignore-errors
Expand Down
2 changes: 1 addition & 1 deletion roles/oraswgi_install/tasks/12.2.0.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
- _orasw_meta_primary_node | bool

- name: install_home_gi | Install cvuqdisk rpm
ansible.builtin.yum:
ansible.builtin.yum: # noqa fqcn[action-core]
name: "{{ oracle_home_gi }}/cv/rpm/{{ cvuqdisk_rpm }}"
state: present
# noqa ignore-errors
Expand Down
2 changes: 1 addition & 1 deletion roles/oraswgi_install/tasks/18.3.0.0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
- _orasw_meta_primary_node | bool

- name: install_home_gi | Install cvuqdisk rpm
ansible.builtin.yum:
ansible.builtin.yum: # noqa fqcn[action-core]
name: "{{ oracle_home_gi }}/cv/rpm/{{ cvuqdisk_rpm }}"
state: present
# noqa ignore-errors
Expand Down
2 changes: 1 addition & 1 deletion roles/oraswgi_install/tasks/19.3.0.0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
tags: cvuqdisk

- name: include 19c/21c | Install cvuqdisk rpm
ansible.builtin.yum:
ansible.builtin.yum: # noqa fqcn[action-core]
name: "{{ oracle_rsp_stage }}/{{ cvuqdisk_rpm }}"
state: present
disable_gpg_check: true
Expand Down

0 comments on commit 5c25b01

Please sign in to comment.