base_role/tasks/base_Ubuntu.yml
embed@git.macaw.me b50fd16591 first
2024-01-06 01:38:28 +00:00

33 lines
797 B
YAML
Executable File

# -*- mode: yaml; indent-tabs-mode: nil; tab-width: 2; coding: utf-8-unix -*-
---
- name: "DEBUG: base Ubuntu.yml"
debug:
verbosity: 1
msg: "DEBUG: Including base Ubuntu.yml"
- name: "set_fact OS flavour"
set_fact:
# ansible_facts
BOX_OS_FLAVOR: "{{ansible_distribution_release}}"
- name: "oddball Ubuntu14 VM is coming up with ifconfig lo up but no route"
shell: |
ip route | grep -v grep | grep -q 'lo$' || ip route add 127.0.0.0/8 dev lo scope host
# FixMe: Breaks in a Docker container
ignore_errors: true
- name: "dont make apt install start servives, to be like Gentoo"
set_fact:
apt_env:
RUNLEVEL: 1
- name: "apt-get update"
apt:
force_apt_get: true
update_cache: true
ignore_errors: "{{ BASE_PKG_IGNORE_ERRORS }}"
when: false