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
root.yml 664 B
Newer Older
  • Learn to ignore specific revisions
  • Freezed's avatar
    Freezed committed
    ---
    
    - remote_user: root
    
      tasks:
      -  name: ROOT | dotfiles
         ansible.builtin.copy:
           src: "{{ item }}"
           dest: "/root/.{{ item | basename }}"
           mode: 0640
           owner: root
           group: root
         with_fileglob:
           files/dotfiles/*
         loop_control:
           label: "{{ item | basename }}"
    
    -  - name: ROOT | set zsh for shell
         ansible.builtin.user:
           name: root
           shell: /bin/zsh
           state: present
    
        - name: "ROOT | Local public key is present for root"
          ansible.builtin.authorized_key:
            comment: "Managed by Ansible"
            key: https://gitlab.com/free_zed.keys
            state: present
            user: root