--- # ============================================================ # Common Rules # gelten fuer alle Server # (koennen aber auch einzeln aufgerufen werden) # ============================================================ - name: apt roles: - apt hosts: all tags: - apt - common # ------------------------------------------------------------ - name: packages hosts: all roles: - packages tags: - packages - common # ------------------------------------------------------------ - name: common-linux hosts: all roles: - common-linux tags: - common-linux - common # ------------------------------------------------------------ - name: set up zsh for root and horus hosts: all become: no vars: the_user: "horus" tasks: - name: change user shell to zsh become: yes user: name: "{{ the_user }}" shell: /bin/zsh - name: change root shell to zsh become: no user: name: "root" shell: /bin/zsh tags: - chsh - name: copy .zshrc for root and horus hosts: all tasks: - name: copy .zshrc for root copy: src: .zshrc dest: /root/.zshrc owner: root - name: copy .zsh_aliases for root copy: src: .zsh_aliases dest: /root/.zsh_aliases owner: root - name: copy .zshrc for horus copy: src: .zshrc dest: /home/horus/.zshrc owner: horus - name: copy .zsh_aliases for root copy: src: .zsh_aliases dest: /home/horus/.zsh_aliases owner: horus tags: - chsh # ------------------------------------------------------------ - name: php hosts: all roles: - php tags: - php - common - name: nodejs hosts: all roles: - php tags: - nodejs - applications # ------------------------------------------------------------ - name: ssh hosts: all roles: - ssh tags: - ssh - common # ------------------------------------------------------------ - name: mostdiscussed hosts: code roles: - mostdiscussed tags: - mostdiscussed - applications - name: ghrss hosts: code roles: - ghrss tags: - ghrss - applications # ------------------------------------------------------------ - name: nextcloud hosts: cloud roles: - nextcloud tags: - nextcloud #the_user: "{{ ansible_user_id }}" # ------------------------------------------------------------ - name: hncrawler hosts: code roles: - hncrawler tags: - hncrawler