Procházet zdrojové kódy

Merge branch 'master' of git.thengo.net:ka/ansible-role-common

master
rodič
revize
bf4d95380f
4 změnil soubory, kde provedl 24 přidání a 11 odebrání
  1. +4
    -1
      defaults/main.yaml
  2. +5
    -0
      tasks/debian_packages.yaml
  3. +13
    -6
      tasks/network.yaml
  4. +2
    -4
      vars/main.yaml

+ 4
- 1
defaults/main.yaml Zobrazit soubor

@@ -30,6 +30,9 @@ debian_backports_sources: "{{debian_sources}}"
debian_security_sources: "{{debian_sources}}"

common_package_intallation: true
machine_package_intallation: true
microcode_update: false

increase_maximum_inotify_user_watches: true
increase_maximum_inotify_user_watches: false

resolvconf_enabled: true

+ 5
- 0
tasks/debian_packages.yaml Zobrazit soubor

@@ -9,6 +9,11 @@
pkg: "{{ debian_boot_packages }}"
when: debian_boot_packages is defined

- name: debian machine packages
apt:
pkg: "{{ debian_machine_packages }}"
when: machine_package_intallation

- name: debian common packages
apt:
pkg: "{{ debian_common_packages }}"


+ 13
- 6
tasks/network.yaml Zobrazit soubor

@@ -1,8 +1,15 @@
---

- name: link resolv.conf
file:
src: /run/resolvconf/resolv.conf
dest: /etc/resolv.conf
state: link
force: true
- when: resolvconf_enabled
block:

- name: resolvconf debian package
apt:
pkg: resolvconf

- name: link resolv.conf
file:
src: /run/resolvconf/resolv.conf
dest: /etc/resolv.conf
state: link
force: true

+ 2
- 4
vars/main.yaml Zobrazit soubor

@@ -11,11 +11,9 @@ debian_base_packages:
- nano

# network tools
- net-tools
- iputils-ping

# network config
- resolvconf

# compression
- unzip
- p7zip
@@ -110,7 +108,7 @@ debian_common_packages:
# installation utils
- debootstrap

debian_hardware_packages:
debian_machine_packages:

# hardware utils
- pciutils