Browse Source

Update common tasks to support Debian 11 install

master
LecygneNoir 2 years ago
parent
commit
63f0e8a58a
1 changed files with 8 additions and 3 deletions
  1. +8
    -3
      roles/common/tasks/main.yml

+ 8
- 3
roles/common/tasks/main.yml View File

@ -7,7 +7,14 @@
- name: Bootstrap if necessary
tags: bootstrap
raw: python -c "import apt" || DEBIAN_FRONTEND=noninteractive apt-get --force-yes -y install python-apt
when: ansible_distribution == 'Debian'
when: ansible_distribution == 'Debian' and ansible_distribution_major_version|int < 11
- name: Bootstrap if necessary
tags: bootstrap
raw: python -c "import apt" || DEBIAN_FRONTEND=noninteractive apt-get --force-yes -y install python3-apt
when: ansible_distribution == 'Debian' and ansible_distribution_major_version|int >= 11
# Check mandatory variables
- name: Check vars
@ -71,9 +78,7 @@
# Env setup
- name: Set the locale
tags: environ
debconf: name=locales question='default_environment_locale' value='fr_FR.UTF-8' vtype='multiselect'
debconf: name=locales question='locales_to_be_generated' value='en_US.UTF-8 UTF-8, fr_FR.UTF-8 UTF-8' vtype='multiselect'
debconf: name=locales question='locales/locales_to_be_generated' value='fr_FR.UTF-8, UTF-8' vtype='multiselect'
when: ansible_distribution == 'Debian'
- name: Set timezone

Loading…
Cancel
Save