Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
main.yml 500 B
---
- hosts: "{{ host_list }}"
  become_user: "{{ my_user }}"
  become_method: su
  remote_user: root

  tasks:

  - name: USER CONFIG | install zsh
    when: inventory_hostname in groups.workstat
    ansible.builtin.apt:
      cache_valid_time: 3600
      force_apt_get: true
      pkg: zsh
      state: present
      update_cache: true

  - name: IMPORT_TASKS | root
    ansible.builtin.import_tasks: root.yml

  - name: "IMPORT_TASKS | {{ my_user }}"
    ansible.builtin.import_tasks: my_user.yml