Browse Source

add xfs support for container creation

python3
Edoardo Putti 7 years ago
parent
commit
fb7de32b4d
1 changed files with 20 additions and 13 deletions
  1. +20
    -13
      prepare_host.yaml

+ 20
- 13
prepare_host.yaml View File

@ -13,9 +13,14 @@
update_cache: yes update_cache: yes
cache_valid_time: 3600 cache_valid_time: 3600
with_items: with_items:
- lxc
- python
- python-lxc
- lxc
- python
- python-lxc
- name: install common lxc filesystem support
apt:
name: xfsprogs
state: present
- name: install network bridge utilities - name: install network bridge utilities
apt: apt:
@ -31,10 +36,11 @@
# Bridge-utils requires a complete system reboot to enable the new bridge. # Bridge-utils requires a complete system reboot to enable the new bridge.
- name: configure network bridge with vlans - name: configure network bridge with vlans
template: template:
src: templates/interfaces.j2
dest: /etc/network/interfaces
src: templates/interfaces.j2
dest: /etc/network/interfaces
notify: restart networking notify: restart networking
- name: install utilities - name: install utilities
apt: apt:
name: "{{ item }}" name: "{{ item }}"
@ -42,8 +48,8 @@
update_cache: yes update_cache: yes
cache_valid_time: 3600 cache_valid_time: 3600
with_items: with_items:
- vim
- htop
- vim
- htop
- name: enable lvm wipe signature - name: enable lvm wipe signature
lineinfile: lineinfile:
@ -53,12 +59,13 @@
regexp: '^\s*.+wipe_signatures_when_zeroing_new_lvs = ' regexp: '^\s*.+wipe_signatures_when_zeroing_new_lvs = '
notify: restart lvm notify: restart lvm
handlers: handlers:
- name: restart networking
service:
name: networking
state: restarted
- name: restart lvm
shell: /etc/init.d/lvm2 reload
- name: restart networking
service:
name: networking
state: restarted
- name: restart lvm
shell: /etc/init.d/lvm2 reload
- hosts: status - hosts: status
roles: roles:
- role: icinga2-monitoring - role: icinga2-monitoring

Loading…
Cancel
Save