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

30 lines
446 B
YAML
Raw 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
become: yes
- name: 'Basics: Temp dir perms'
tags:
- basics
file:
path: '/srv/tmp'
mode: '1777'
become: yes