mirror of
https://github.com/krislamo/vagrant-easyredmine
synced 2024-11-09 22:40:36 +00:00
25 lines
636 B
YAML
25 lines
636 B
YAML
---
|
|
- hosts: all
|
|
sudo: false
|
|
gather_facts: false
|
|
#vars_files:
|
|
# - production_config.yml
|
|
|
|
tasks:
|
|
|
|
- name: Create user of Redmine installation
|
|
user: name='{{ redmine_owner }}'
|
|
state=present
|
|
ssh_key_file=.ssh/id_rsa
|
|
|
|
- name: Set up authorized_keys for the redmine account
|
|
authorized_key: user='{{ redmine_owner }}'
|
|
key="{{ redmine_owner_ssh_pub_key }}"
|
|
|
|
- name: Set up sudoers for the redmnine account
|
|
template: dest='/etc/sudoers.d/10_{{ redmine_owner }}'
|
|
src=templates/sudoers.j2
|
|
owner=root
|
|
mode=0440
|
|
|