moved openrc files
This commit is contained in:
parent
7820343da6
commit
9552603fa3
@ -2,48 +2,26 @@
|
||||
- name: install software
|
||||
package: name={{ install_software }} state=present update_cache=yes
|
||||
|
||||
- name: generate ssh key
|
||||
openssh_keypair:
|
||||
path: "/root/.ssh/id_rsa"
|
||||
type: rsa
|
||||
size: 2048
|
||||
state: present
|
||||
force: no
|
||||
|
||||
- name: read ssh key
|
||||
command: "cat /root/.ssh/id_rsa.pub"
|
||||
register: key
|
||||
|
||||
- name: show ssh public key
|
||||
debug:
|
||||
msg: "{{ key.stdout }}"
|
||||
|
||||
- name: checkout site
|
||||
git:
|
||||
repo: https://git.br0tkasten.de/br0tkasten/www.br0tkasten.de.git
|
||||
repo: "{{ hugo_repository }}"
|
||||
dest: /srv/hugo
|
||||
version: master
|
||||
|
||||
- name: deploy hugo init script
|
||||
- name: deploy init scripts
|
||||
copy:
|
||||
src: hugo.openrc
|
||||
dest: /etc/init.d/hugo
|
||||
src: "openrc/{{ item }}"
|
||||
dest: "/etc/init.d/{{ item }}"
|
||||
mode: 0755
|
||||
with_items:
|
||||
- hugo
|
||||
- webhook
|
||||
|
||||
- name: enable hugo service
|
||||
- name: start and enable services
|
||||
service:
|
||||
name: hugo
|
||||
name: "{{ item }}"
|
||||
state: started
|
||||
enabled: yes
|
||||
|
||||
- name: deploy webhook init script
|
||||
copy:
|
||||
src: webhook.openrc
|
||||
dest: /etc/init.d/webhook
|
||||
mode: 0755
|
||||
|
||||
- name: start & enable webhook
|
||||
service:
|
||||
name: webhook
|
||||
state: started
|
||||
enabled: yes
|
||||
with_items:
|
||||
- hugo
|
||||
- webhook
|
||||
|
Loading…
x
Reference in New Issue
Block a user