1
0
mirror of https://github.com/krislamo/vagrant-easyredmine synced 2024-11-09 22:40:36 +00:00
vagrant-easyredmine/bootstrap.yml

29 lines
756 B
YAML
Raw Normal View History

2015-11-22 02:46:56 +00:00
---
- hosts: all
2016-07-14 03:15:07 +00:00
become: false
2015-11-22 02:46:56 +00:00
gather_facts: false
vars_files:
#- production_config.yml
- config.yml
2015-11-22 02:46:56 +00:00
tasks:
2015-11-30 15:08:24 +00:00
# match uid with NFS server
2015-11-22 02:46:56 +00:00
- name: Create user of Redmine installation
user: name='{{ redmine_owner }}'
uid='{{ redmine_uid }}'
2015-11-30 15:08:24 +00:00
state=present
2015-11-22 02:46:56 +00:00
ssh_key_file=.ssh/id_rsa
- name: Set up authorized_keys for the redmine account
authorized_key: user='{{ redmine_owner }}'
2015-12-23 21:08:04 +00:00
key='{{ item }}'
with_items: "{{ redmine_owner_ssh_pub_keys }}"
2015-11-22 02:46:56 +00:00
- name: Set up sudoers for the redmnine account
template: dest='/etc/sudoers.d/10_{{ redmine_owner }}'
src=templates/sudoers.j2
owner=root
mode=0440