aboutsummaryrefslogblamecommitdiffstats
path: root/roles/tools/tasks/main.yml
blob: 1e9cabb3ba841ad6b744b67409a6eeec0f566074 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                                                      
                                   







                                                 
                                                         




                                          
            
            
          
          
         
         






                                                                                  
               

# tools ~~ roles/tools/tasks/main.yml
# see : https://gitlab.archlinux.org/archlinux/infrastructure/-/blob/master/roles/tools/tasks/main.yml

---

- set_fact:
    packages: "{{ packages[os_distribution] }}"

- name: install sysadmin tools
  package: state=present name="{{ item }}"
  loop:
    - tmux
    - htop
    - "{{ ansible_become_method }}"
  #failed_when: false
  ignore_errors: true

- name: install per distribution correspond tools
  package: state=present name="{{ item }}"
  loop:
    - "{{ packages.sshfs }}"
    - "{{ packages.wireguard }}"
    - "{{ packages.extra if packages.extra is defined }}"
  ignore_errors: true

- name: install misc utils
  package: state=present name="{{ item }}"
  loop:
    - neovim
    - figlet
    - curl
    - wget
    - git
    - zsh
  #failed_when: false
  ignore_errors: true

- name: install scripts repository
  git:
    repo: "https://gitlab.com/rgoncalves.se/infrastructure/infrastructure-scripts"
    dest: /data/scripts
    force: true
remember that computers suck.