Skip to content
Snippets Groups Projects
install_packages.yml 1.14 KiB
---
### INSTALL PACKAGES ###
- name: purge old Debian 10 packages
  ansible.builtin.apt:
    state: absent
    name: "perl-modules-5.28"

- name: Install/Update Software Packages
  ansible.builtin.apt:
    state: present
    name: [
      'cpanminus',
      'git',
      'make',
      'perl',
      'perl-base',
      'perl-modules-5.32',
      'rsync',
      'sqlite3',
      'tar',
      'unzip',
    ]
    update_cache: "yes"

- name: Install/Update Perl-Pakages for Exit
  ansible.builtin.apt:
    state: present
    name: [
      'libdbd-sqlite3-perl',
      'libdbi-perl',
      'libnet-openssh-perl',
      'libpath-tiny-perl',
      'libtime-progress-perl',
      'libxml-libxml-perl',
    ]

- name: install Perl packages from CPAN
  ansible.builtin.cpanm:
    name: "{{ item }}"
  loop:
    # these are part of the "perl-base" Debian 10 package, so we get them for free:
    #    - "Carp"
    #    - "Cwd"
    #    - "File::Basename"
    #    - "Getopt::Long"
    #    - "IO::Handle"
    # and these are not, so they must be installed using cpanm:
    - "Bloom::Filter"
    - "File::Find"
    - "File::Sort"
    - "Path::Tiny"
    - "XML::LibXML::XPathContext"