added
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
when:
|
||||
- item != '' and item != []
|
||||
- BASE_ARE_CONNECTED|default('') != ''
|
||||
- "{{ ansible_virtualization_role|replace('NA', 'host') == 'host' }}"
|
||||
- "ansible_virtualization_role|replace('NA', 'host') == 'host'"
|
||||
|
||||
- name: install toxcore packages GUEST
|
||||
environment: "{{ portage_proxy_env }}"
|
||||
@@ -58,19 +58,20 @@
|
||||
[ -f "/etc/local.d/rc.local.start" ] && exit 0
|
||||
echo /etc/rc.local > /etc/local.d/rc.local.start
|
||||
chmod 755 /etc/local.d/rc.local.start
|
||||
if ! grep consolefont /etc/rc.local ; then
|
||||
cat >> /etc/rc.local << EOF
|
||||
/etc/init.d/consolefont stop; /etc/init.d/consolefont start
|
||||
stty -F /dev/tty1 cols 80 rows 24
|
||||
grep vda /proc/partitions && \
|
||||
e2label /dev/vda3 root && \
|
||||
e2label /dev/vda1 boot
|
||||
sed -e 's/^#L/L/' -i /etc/fstab
|
||||
EOF
|
||||
fi
|
||||
chmod 755 /etc/rc.local
|
||||
bash /etc/rc.local
|
||||
exit 0
|
||||
when:
|
||||
- not ansible_check_mode
|
||||
- BOX_SERVICE_MGR != 'systemd' # maybe
|
||||
- "ansible_virtualization_role|replace('NA', 'host') != 'host'"
|
||||
|
||||
# safe ones
|
||||
- block:
|
||||
@@ -167,5 +168,6 @@
|
||||
FCFLAGS="${CFLAGS}"
|
||||
FFLAGS="${CFLAGS}"
|
||||
|
||||
when: true
|
||||
when:
|
||||
- "{{ ansible_virtualization_role|replace('NA', 'host') != 'host' }}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user