Compare commits
2 Commits
master
...
deployment
| Author | SHA1 | Date | |
|---|---|---|---|
| f6b01875d3 | |||
| 1a536f8618 |
10
.drone.yml
Normal file
10
.drone.yml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
- name: apply ansible playbook
|
||||||
|
image: plugins/ansible:1
|
||||||
|
settings:
|
||||||
|
playbook: syncpush.yml
|
||||||
|
inventory: hosts
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- tag
|
||||||
15
ansible.cfg
Normal file
15
ansible.cfg
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
[defaults]
|
||||||
|
inventory = ./hosts
|
||||||
|
library = library
|
||||||
|
remote_tmp = $HOME/.ansible/tmp
|
||||||
|
remote_user = root
|
||||||
|
nocows = 1
|
||||||
|
roles_path = roles
|
||||||
|
retry_files_enabled = False
|
||||||
|
callback_plugins = plugins/callback
|
||||||
|
callback_whitelist = profile_tasks
|
||||||
|
|
||||||
|
[ssh_connection]
|
||||||
|
pipelining = True
|
||||||
|
scp_if_ssh = True
|
||||||
|
retries = 5
|
||||||
2
hosts
Normal file
2
hosts
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[nebula]
|
||||||
|
dotya.ml
|
||||||
15
syncpush.yml
Normal file
15
syncpush.yml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
- name: Sync push task
|
||||||
|
hosts: nebula
|
||||||
|
remote_user: root
|
||||||
|
tasks:
|
||||||
|
- name: Copy gitea templates to nebula
|
||||||
|
tags: sync-push
|
||||||
|
synchronize:
|
||||||
|
src: "{{ item }}"
|
||||||
|
dest: "/var/lib/gitea/{{ item }}-test"
|
||||||
|
mode: push
|
||||||
|
register: syncfile
|
||||||
|
with_items:
|
||||||
|
- "custom/public/robots.txt"
|
||||||
|
- "custom/templates/home.tmpl"
|
||||||
Loading…
Reference in New Issue
Block a user