yum: name: tmux state: present ignore_errors: yes #tmux initialization script - name: transfer and execute tmux script[JS1] copy: # src: tmuxstig.sh.j2 # this line does not work even though the script is located in templats on 8 src: /etc/profile.d/tmuxstig.sh dest: '/etc/profile.d/' mode: '0755' ignore_errors: yes
- name: Add pam_pwhistory line after the last pam_unix.so [JS3]in
password-auth if it does not exist blockinfile: path: /etc/pam.d/password-auth marker: "# {mark} ANSIBLE MANAGED BLOCK AFTER PAM_UNIX" block: | password requisite pam_pwhistory.so use_authtok remember=5 retry=3[JS4] backup: yes when: grep_password_auth.rc != 0
[JS1]This is where I get my FIRST error it is actually on ansible control
node server/ its the ansible control server, the run running the playbook itself where i get this error: fatal: servername: FAILED! => {"changed": false, "msg": "Failed to download metadata for repo 'Centrify_xxxx': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried", "rc": 1, "results": []} [JS2]Why is this skipped? [JS3]This is in document Multiple times I want to ensure it is added after LAST occurance will this work? [JS4]This document is very particular about spacing will this get spacing rignt?