forked from saratov/infra
Removed commented code
This commit is contained in:
parent
084b3e088e
commit
8997cfe9d1
@ -86,18 +86,8 @@
|
||||
- name: install Alterator`s modules
|
||||
apt_rpm:
|
||||
pkg: alterator,alterator-net-eth
|
||||
# pkg: alterator,alterator-alternatives,alterator-audit,alterator-bind,alterator-datetime,alterator-dhcp,alterator-groups,alterator-mirror,alterator-mkimage,alterator-net-bond,alterator-net-bridge,alterator-net-domain,alterator-net-eth,alterator-net-functions,alterator-net-iptables,alterator-net-routing,alterator-net-vlan,alterator-packages,alterator-services,alterator-sshd,alterator-sysconfig,alterator-users,alterator-vsftpd,alterator-xinetd
|
||||
state: installed
|
||||
|
||||
# FIX: don't know how to switch from dhcp to static via alterator
|
||||
# just remove this line from options file for now
|
||||
#- name: remove options for eth0
|
||||
# lineinfile:
|
||||
# dest: /etc/net/ifaces/eth0/options
|
||||
# regexp: '^BOOTPROTO=dhcp.*'
|
||||
# backrefs: yes
|
||||
# state: absent
|
||||
|
||||
- name: disable IPv6
|
||||
sysctl: name={{ item }} value=1 state=present
|
||||
with_items:
|
||||
@ -147,13 +137,6 @@
|
||||
loop_control:
|
||||
loop_var: nic
|
||||
|
||||
# TODO: need to make it idempotent!
|
||||
#- name: set hostname
|
||||
# shell: '[[ $(hostname) == "{{inventory_hostname_short}}.{{stack.domain}}" ]] || { alterator-cmdline -d /net-eth action write computer_name "{{inventory_hostname_short}}.{{stack.domain}}" commit "#t"; echo changed; }'
|
||||
# register: result
|
||||
# notify: restart network
|
||||
# changed_when: '"changed" in result.stdout'
|
||||
|
||||
- name: delete .bash_logout
|
||||
file:
|
||||
path: /root/.bash_logout
|
||||
|
Loading…
Reference in New Issue
Block a user