Skip to content

Commit

Permalink
Fix ansible lint in molecule
Browse files Browse the repository at this point in the history
fqcn[action-core]: Use FQCN for builtin module actions (apt).
molecule/default/prepare.yml:6 Use `ansible.builtin.apt` or `ansible.legacy.apt`
instead.

fqcn[action-core]: Use FQCN for builtin module actions (debug).
molecule/default/verify.yml:16 Use `ansible.builtin.debug` or
`ansible.legacy.debug` instead.

fqcn[action-core]: Use FQCN for builtin module actions (assert).
molecule/default/verify.yml:19 Use `ansible.builtin.assert` or
`ansible.legacy.assert` instead.
  • Loading branch information
bturmann committed May 27, 2024
1 parent 8d7dd44 commit c9105e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
gather_facts: true
tasks:
- name: Update apt cache and install gpg
apt:
ansible.builtin.apt:
name: gpg
state: present
update_cache: true
Expand Down
6 changes: 3 additions & 3 deletions molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
gather_facts: false
tasks:
- name: Verify web server is running
uri:
ansible.builtin.uri:
url: http://localhost/
status_code: 200
return_content: true
headers:
Host: auth.example.ci
register: result_get_auth_portal
- name: Debug
debug:
ansible.builtin.debug:
msg: '{{ result_get_auth_portal }}'
- name: Check if LemonLDAP is present into response
assert:
ansible.builtin.assert:
that:
- "'LemonLDAP' in result_get_auth_portal.content"

0 comments on commit c9105e9

Please sign in to comment.