|
|
@ -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 |
|
|
|