Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion playbooks/roles/base_image/tasks/custom-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -355,4 +355,3 @@
mode: "u=rw,g=r,o=r"
when:
- custom_image_stat.stat.exists or custom_image_download is changed
- custom_image != base_image_pathname
50 changes: 17 additions & 33 deletions playbooks/roles/devconfig/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,25 @@
dest: /etc/hostname
tags: hostname

- name: Ensure locales-all package is installed
become: true
become_flags: "su - -c"
become_method: sudo
ansible.builtin.package:
name: locales-all
state: present
# Distro specific

# Check and fix APT mirrors for Debian testing before installing dependencies
- name: Check and fix APT mirrors for Debian testing
ansible.builtin.include_tasks: check-apt-mirrors.yml
when:
- ansible_facts['os_family']|lower == 'debian'
tags: firstconfig
- devconfig_debian_testing is defined
- devconfig_debian_testing | bool

- name: Install dependencies
ansible.builtin.include_tasks: install-deps/main.yml
tags: ["vars", "vars_simple"]

- name: Configure custom repositories and install packages
ansible.builtin.import_tasks: config-custom-repos-and-packages/main.yml
when:
- ansible_facts['os_family']|lower == 'redhat'

# Distro agnostic stuff goes below
- name: Configure en_US.UTF-8 locale files
become: true
become_flags: "su - -c"
Expand All @@ -80,8 +88,6 @@
- { path: "/etc/default/locale", line: "LANG=en_US.UTF-8" }
- { path: "/etc/default/locale", line: "LANGUAGE=en_US:en" }
- { path: "/etc/locale.gen", line: "en_US.UTF-8 UTF-8" }
when:
- ansible_facts['os_family']|lower == 'debian'
tags: firstconfig

- name: Generate and update locales
Expand All @@ -92,30 +98,8 @@
locale-gen en_US.UTF-8
update-locale LANG=en_US.UTF-8
changed_when: true
when:
- ansible_facts['os_family']|lower == 'debian'
tags: firstconfig

# Distro specific

# Check and fix APT mirrors for Debian testing before installing dependencies
- name: Check and fix APT mirrors for Debian testing
ansible.builtin.include_tasks: check-apt-mirrors.yml
when:
- devconfig_debian_testing is defined
- devconfig_debian_testing | bool

- name: Install dependencies
ansible.builtin.include_tasks: install-deps/main.yml
tags: ["vars", "vars_simple"]

- name: Configure custom repositories and install packages
ansible.builtin.import_tasks: config-custom-repos-and-packages/main.yml
when:
- ansible_facts['os_family']|lower == 'redhat'

# Distro agnostic stuff goes below

- name: Check if /mirror directory exists on localhost
delegate_to: localhost
ansible.builtin.stat:
Expand Down
Loading