Search results

  1. R

    Ansible - run playbooks from different directory

    is there any parameter to hardcode the playbook location in the ansible.cfg?
  2. R

    Ansible - run playbooks from different directory

    Hi Can I store ansible playbooks in different directories and my customized ansible.cfg stored under different directories and run the playbooks? It seems that ansible assumes that the ansible.cfg file exists in the current working directory so when I try to call a playbook that exists in a...
  3. R

    Ansible - add new line to a file

    Yes you are right, Since I had the date in the playbook that could cased the problem. I changed to add hour, min and sec. however they playbook got executed immediately at the same time on all nodes, this was same as having the date and did not update the file for all three nodes. output...
  4. R

    Ansible - add new line to a file

    its the random nodes getting missed. Each time I run the playbook a random node(s) is missed and sometime it worked on all nodes. any suggestions to add a line to the file in control node other thn module lineinfile ?
  5. R

    Ansible - add new line to a file

    ran the playbook with -v, it is getting executed successfully on all nodes, however the file is not updated for every nodes. Is something related to lineinfile statements? or is there any alternate options to add a new line to the file in the control nodes? below is the output from -V...
  6. R

    Ansible - add new line to a file

    Hi I am trying to add a line in a file on the control node after performing the yum update on the managed nodes. I have created the below playbook. Adding new lines to the file in control node is getting skipped for some random servers. - name: Mail function hosts: SSS vars: date...
  7. R

    Ansible - "Destination /etc/yum.repos.d not writable"

    Hi I lcoated the local customization for yum configuration. it was residing on /usr/local/bin/yum.. this script made the ansible playbook for yum update to hung. Playbook ran fine after I have removed the script. Thank you
  8. R

    Ansible - "Destination /etc/yum.repos.d not writable"

    Yes, the playbook for yum update is working fine on the new RHEL systems, but i get hung on the TASK [sudo update] in our old systems. I could not find if there is any local customization is done for the yum configurations on the old systems. Any suggestions on what are the files I need to...
  9. R

    Ansible - "Destination /etc/yum.repos.d not writable"

    Its hangs in Task [sudo update], after few mins, I have to manually terminate the playbook. [[email protected] ansible]$ ansible-playbook yum_update.yml SSH password: BECOME password[defaults to SSH password]: PLAY [RHEL Package Update]...
  10. R

    Ansible - "Destination /etc/yum.repos.d not writable"

    Hi Again Now I have been stuck with yum update via ansible. I have created a simple play to do a yum update as below; when the play is executed, the yum update hangs indefinitely. I could not find if there is any local customization is done for the yum updates. I can simply log onto the...
  11. R

    Ansible - "Destination /etc/yum.repos.d not writable"

    Hi, I found the error, its our local customization on the sudoers file that didn't allow to use root via ansible. It worked fine when I disabled the local customization. thank you very much for your help
  12. R

    Ansible - "Destination /etc/yum.repos.d not writable"

    vagrant1 is the user used in control system and using the same user in managed node to connect and it has the sudo privilege.
  13. R

    Ansible - "Destination /etc/yum.repos.d not writable"

    I am using ansible 2.9.16 and destination host is Red Hat Enterprise Linux Server release 7.8 (Maipo)
  14. R

    Ansible - "Destination /etc/yum.repos.d not writable"

    I ran the playbook again and it listed my ldap user for the commands "id" $ "whoami" however when I change the become_method to sudo from enable in ansible.cfg, it gave error with shared connection to 10.192.128.154 is closed. Below are the details ansible.cfg: [defaults] inventory =...
  15. R

    Ansible - "Destination /etc/yum.repos.d not writable"

    Tried with shell command ID, got the below error(used -VVV) Shared connection to 10.192.128.154 closed. Any suggestions? below is the verbose output. <10.192.128.154> (0, 'sftp> put /home/bc7409/.ansible/tmp/ansible-local-24241UhSs5v/tmp0wOUgO...
  16. R

    Ansible - "Destination /etc/yum.repos.d not writable"

    The output is from -vvv (debugging)
  17. R

    Ansible - "Destination /etc/yum.repos.d not writable"

    I did a verbose and got the below ouput, still could not understand what I'm missing. "changed": false, "checksum": "bceb47957aa7709b77108019f398d05b481ddca3", "diff": [], "invocation": { "module_args": { "_original_basename": "rhel76-kernel-test.repo"...
  18. R

    Ansible - "Destination /etc/yum.repos.d not writable"

    Hi I am new to Ansible, I'm trying to copy a repo file from control node to manage node and got the below error when executing my playbook. Error: fatal: [10.192.128.154]: FAILED! => {"changed": false, "checksum": "bceb47957aa7709b77108019f398d05b481ddca3", "msg": "Destination /etc/yum.repos.d...
Top