update_cache:true# not required. Whether or not to refresh the master package lists. This can be run as part of a package installation or as a separate step.
become:yes
- name:install ansible program
pacman:
state: present # not required. choices:absent;latest;present. Desired state of the package.
upgrade:false# not required. Whether or not to upgrade whole system.
name:['ansible','ansible-lint']# not required. Name or list of names of the packages to install, upgrade, or remove.
dest:~/Documents/ansible# required. The path of where the repository should be checked out. This parameter is required, unless C(clone) is set to C(no).