|
⇤ ← Revision 1 as of 2020-01-30 18:02:32
Size: 378
Comment:
|
Size: 538
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| #acl All: | #acl All: read |
| Line 5: | Line 5: |
= Description = Ansible is used for configuration management. It's very easy and can save you a lot of time. Here are some snippets I use for my configuration. |
|
| Line 12: | Line 15: |
| = Configuration options = |
= Configuration = |
| Line 19: | Line 21: |
| path: /src/www | path: /path/www |
Contents
Description
Ansible is used for configuration management. It's very easy and can save you a lot of time. Here are some snippets I use for my configuration.
Facts
Getting all the facts of a server.
ansible -i config/hosts server -m setup
Configuration
Directories
Make a directory
- name: Creates directory
file:
path: /path/www
state: directory
owner: www-data
group: www-data
mode: 0775
recurse: yes