Articles

Affichage des articles du février, 2021

GITLAB

 git --version git config --global user.name “Your Username” git config --global user.email “Your Email ID”

Ansible premiers pas

Image
Ansible look env config order ANSIBLE_CONFIG  (environment variable if set) ansible.cfg  (in the current directory) ~/.ansible.cfg  (in the home directory) /etc/ansible/ansible.cfg site.yml  is the default name for a playbook 'main.yml' :  This is the default filename for a file containing Ansible Tasks, or Handlers A role should encapsulate all the things that have to happen to make a thing work Roles can have dependencies, which will require that another role be applied first In general, a role consists of the following subdirectories, "files", "handlers", "meta", "tasks" and "templates". files/  contains files that will be copied to the target with the copy: module. handlers/  contains YAML files which contain 'handlers' little bits of config that can be triggered with the notify: action inside a task. Usually just handlers/main.yml - See  http://docs.ansible.com/playbooks_intro.html#handlers-running-operations-on-ch...