dotfiles/.ansible/roles/common_server/tasks/basics.yaml

31 lines
461 B
YAML
Raw Permalink Normal View History

- name: 'Basics: Package installs'
tags:
- install
- basics
yum:
name: "{{ item }}"
state: latest
2019-01-20 10:51:09 +00:00
loop: "{{ server_packages }}"
become: yes
- name: 'Basics: Directories'
tags:
- basics
file:
path: "{{ item }}"
state: directory
loop:
- /srv
- /srv/app
- /srv/tmp
2019-10-12 19:50:49 +01:00
- /srv/etc
become: yes
- name: 'Basics: Temp dir perms'
tags:
- basics
file:
path: '/srv/tmp'
mode: '1777'
become: yes