Skip to content
Snippets Groups Projects
Select Git revision
  • 0aefcd3f187bca7b32b6de4e52bbccf0211a523f
  • master default protected
  • intros
  • live_sources
  • bootstrap4
  • modules
6 results

jobs.py

Blame
  • Forked from Video AG Infrastruktur / website
    Source project has a limited visibility.
    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: