Browse Source

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

master
parent
commit
bf4d95380f
4 changed files with 24 additions and 11 deletions
  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 View File

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


common_package_intallation: true common_package_intallation: true
machine_package_intallation: true
microcode_update: false microcode_update: false


increase_maximum_inotify_user_watches: true
increase_maximum_inotify_user_watches: false

resolvconf_enabled: true

+ 5
- 0
tasks/debian_packages.yaml View File

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


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

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


+ 13
- 6
tasks/network.yaml View File

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

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


# network tools # network tools
- net-tools
- iputils-ping - iputils-ping


# network config
- resolvconf

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


debian_hardware_packages:
debian_machine_packages:


# hardware utils # hardware utils
- pciutils - pciutils