Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 1.07 KB

README.md

File metadata and controls

36 lines (22 loc) · 1.07 KB

Ansible AdHoc Commands

AdHoc command allows execute a single Ansible task in a programmatic and simple way. This lesson dives in this Ansible feature.

In order to understand this lesson properly, a set of steps have been designed to be implemented in the following section.

ENJOY !!!

Steps

  • Execute different Ansible Ad-Hoc Commands in order to achieve the following objectives:
    • Print "It is working" message on localhost
    • Print instance settings on localhost
    • Create a new user "yourname" on localhost using become (root)
    • Include the new user "yourname" on wheel group on localhost using become (root)
    • Copy sudo file /etc/passwd on localhost using become "yourname" and setting permissions 440 and owner root in /tmp/newfile

Useful Links

For more information, please visit:

License

BSD

Author Information

Asier Cidon - Cloud Consultant

[email protected]