Skip to content
Snippets Groups Projects
Select Git revision
  • 1e7ecdf8b3193bef161498d6579a30de73555fce
  • master default protected
  • th/btop
  • th/ssh-config
  • th/rwth-afu
  • th/rhel
  • th/emacs-nox-gtk
7 results

shell.yml

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    shell.yml 3.26 KiB
    ---
    # file: roles/common/tasks/shell.yml
    
    - name: ensure installation of basic shell commands
      apt:
        name:
          - git
          - vim
          - vim-scripts
          - zsh
        state: present
        install_recommends: false
      tags:
        - packages
        - shell
    
    - name: ensure installaton of some additional software
      apt:
        name:
          - aptitude
          - atop
          - build-essential
          - curl
          - dnsutils
          - ethtool
          - file
          - git-extras
          - htop
          - iotop
          - less
          - lsof
          - man
          - mtr-tiny
          - ncurses-term
          - nmap
          - pv
          - reptyr
          - rsync
          - screen
          - strace
          - sysstat
          - tcpdump
          - tmux
          - tree
          - whois
          - zstd
        state: present
      tags:
        - packages
        - shell
    
    - name: check installed software
      package_facts:
        manager: auto
    
    - name: install emacs-nox iff emacs-gtk is not installed
      apt:
        name: emacs-nox
      when: "'emacs-gtk' not in ansible_facts.packages"
    
    - name: ensure installation of variable additional software
      apt:
        name: "{{ shell_software }}"
        state: present
      tags:
        - packages
        - shell
    
    - name: ensure installation of modern additional software
      apt: