Skip to content

Commit

Permalink
Change min version to 2.10
Browse files Browse the repository at this point in the history
Use FQCN names
  • Loading branch information
kevincoakley committed Oct 19, 2022
1 parent 5b84430 commit 3a57284
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/molecule-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
matrix:
molecule_distro: ['rockylinux8', 'ubuntu2004', 'ubuntu2204']
env:
ANSIBLE_CALLBACK_WHITELIST: profile_tasks
ANSIBLE_CALLBACKS_ENABLED: profile_tasks

steps:
- uses: actions/checkout@v1
Expand Down
4 changes: 2 additions & 2 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ galaxy_info:
# - CC-BY
license: BSD

min_ansible_version: "2.5"
min_ansible_version: "2.10"

#
# platforms is a list of platforms, and each platform has a name and a list of versions.
Expand All @@ -29,8 +29,8 @@ galaxy_info:
- "8"
- name: Ubuntu
versions:
- bionic
- focal
- jammy

galaxy_tags:
- system
Expand Down
4 changes: 0 additions & 4 deletions molecule/ansible-lint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
---
warn_list:
- internal-error
- role-name
- fqcn-builtins
skip_list:
- yaml
16 changes: 9 additions & 7 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
---
- name: Download and install rubygems (RedHat)
package:
ansible.builtin.package:
name: rubygems
state: present
when: ansible_os_family == "RedHat"
retries: 5
delay: 5

- name: Run "apt-get update" (Debian)
apt:
ansible.builtin.apt:
update_cache: true
when: ansible_os_family == "Debian"
retries: 5
delay: 5

- name: Download and install Ruby (Debian)
package:
ansible.builtin.package:
name: ruby
state: present
when: ansible_os_family == "Debian"
retries: 5
delay: 5

- name: Download and install the facter Gem
gem:
community.general.gem:
name: facter
state: present
version: "{{ facter_version }}"
Expand All @@ -33,13 +33,15 @@
delay: 5

- name: Create a symbolic link for /usr/bin/facter (RedHat)
file:
ansible.builtin.file:
src: /usr/local/bin/facter
dest: /usr/bin/facter
owner: root
group: root
state: link
when: ansible_os_family == "RedHat"

- name: Rerun setup to gather the new facter facts
action: setup
- name: Rerun setup module to gather facts
ansible.builtin.setup:
gather_subset:
- facter

0 comments on commit 3a57284

Please sign in to comment.