fix: ansible-lint errors

This commit is contained in:
Bechir Delibes BKWEDOU-NGAMENI
2023-08-07 12:25:13 +02:00
parent 28a61e55fa
commit eaff8d03a5
2 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@
ansible.builtin.include_tasks: disable_default_motd.yml
when: motd_disable_default_motd|bool
- name: configure_motd | Apply template {{ motd_template }} on {{ _motd_file_path }}
- name: "Configure_motd | Apply template {{ motd_template + ' in ' + _motd_file_path }}"
ansible.builtin.copy:
content: "{{ motd_template_prepend + _motd_template_content + motd_template_append }}"
dest: "{{ _motd_file_path }}"
@ -13,7 +13,7 @@
tags:
- molecule-idempotence-notest
- name: configure_motd | Add pam_exec {{ _motd_file_path }} in pam
- name: Configure_motd | Add in pam pam_exec {{ _motd_file_path }}
ansible.builtin.lineinfile:
path: "{{ item }}"
line: session optional pam_exec.so type=open_session stdout {{ _motd_file_path }}