Hello

I hope all is well. I am new to Ansible and I am trying to set up a play or
a playbook that will run the following command:

yum update --skip-broken --nobest -y

I am running Ansible 2.9.27 on a RHEL 7.9 server.

How should I go about formatting the play or playbook so the YAML syntax is
correct and it actually runs?   I will be using a host file to list all of
the servers I am supposed to patch.

I tried writing the playbook like this:

---
    - name: Upgrade all packages
      command: yum update --skip-broken --nobest -y

But I keep getting syntax errors.  Any suggestions will GREATLY be
appreciated!

Thank you in advance,

Sean

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAOKpjz-tG8tda70U6tWO7SqhMn%3Dct_vjfpORsNxQ5-t94YBLVw%40mail.gmail.com.

Reply via email to