Sure ! Here's an example from my actual config. What it does is simply :
deletes a list of configuration files on my system (if they exist) with a loop (the list itself is on another file)
Creates the config folders I'll need to copy my configuration
Symlink the configuration files from my playbook to the system (so we replace the files we deleted before with the proper version, that is the version saved on the playbook)
Note this is all done with the same ansible module, "file". Here's another task somewhere else that uses the module "package", which is used to install my list of packages :
-name:Install packages with pacmanbecome_user:rootpackage:state:presentname:"{{item}}"loop:"{{packages}}"tags:packages-list
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Sure ! Here's an example from my actual config. What it does is simply :
Note this is all done with the same ansible module, "file". Here's another task somewhere else that uses the module "package", which is used to install my list of packages :