mirror of
https://github.com/trailofbits/algo.git
synced 2025-04-19 23:57:15 +02:00
Add missing playbook tags
This commit is contained in:
commit
c5860cbc5d
1 changed files with 19 additions and 1 deletions
|
@ -2,13 +2,17 @@
|
|||
|
||||
- name: Gather Facts
|
||||
setup:
|
||||
tags:
|
||||
- always
|
||||
|
||||
- name: Install software updates
|
||||
apt: update_cache=yes upgrade=dist
|
||||
tags:
|
||||
- cloud
|
||||
|
||||
- name: Check if reboot is required
|
||||
shell: >
|
||||
if [[ $(readlink -f /vmlinuz) != /boot/vmlinuz-$(uname -r) ]]; then echo "required"; else echo "no"; fi
|
||||
if [[ -e /var/run/reboot-required ]]; then echo "required"; else echo "no"; fi
|
||||
args:
|
||||
executable: /bin/bash
|
||||
register: reboot_required
|
||||
|
@ -43,6 +47,8 @@
|
|||
with_items:
|
||||
- { regexp: '^session.*optional.*pam_motd.so.*', line: '# MOTD DISABLED', file: '/etc/pam.d/login' }
|
||||
- { regexp: '^session.*optional.*pam_motd.so.*', line: '# MOTD DISABLED', file: '/etc/pam.d/sshd' }
|
||||
tags:
|
||||
- cloud
|
||||
|
||||
- name: Install tools
|
||||
apt: name="{{ item }}" state=latest
|
||||
|
@ -55,24 +61,36 @@
|
|||
- sendmail
|
||||
- iptables-persistent
|
||||
- cgroup-tools
|
||||
tags:
|
||||
- always
|
||||
|
||||
- name: Loopback for services configured
|
||||
template: src=10-loopback-services.cfg.j2 dest=/etc/network/interfaces.d/10-loopback-services.cfg
|
||||
notify:
|
||||
- restart loopback
|
||||
tags:
|
||||
- always
|
||||
|
||||
- name: Loopback included into the network config
|
||||
lineinfile: dest=/etc/network/interfaces line='source /etc/network/interfaces.d/10-loopback-services.cfg' state=present
|
||||
notify:
|
||||
- restart loopback
|
||||
tags:
|
||||
- always
|
||||
|
||||
- meta: flush_handlers
|
||||
tags:
|
||||
- always
|
||||
|
||||
- name: Enable packet forwarding for IPv4
|
||||
sysctl: name="{{ item }}" value=1
|
||||
with_items:
|
||||
- net.ipv4.ip_forward
|
||||
- net.ipv4.conf.all.forwarding
|
||||
tags:
|
||||
- always
|
||||
|
||||
- name: Enable packet forwarding for IPv6
|
||||
sysctl: name=net.ipv6.conf.all.forwarding value=1
|
||||
tags:
|
||||
- always
|
||||
|
|
Loading…
Add table
Reference in a new issue