Skip to content

Instantly share code, notes, and snippets.

@Todorovikj

Todorovikj/playbook.yml

Last active Aug 9, 2020
Embed
What would you like to do?
Copy files ansible f1
- name: Copy project files
hosts: azure-server
become: true
tasks:
- name: Create project directory
file:
path: /home/AnIS
state: directory
- name: Copy docker-compose
copy:
src: "./../docker-compose.yml"
dest: "/home/AnIS/docker-compose.yml"
mode: 0777
- name: Copy back-end jar
copy:
src: "./../Backend_gradle/build/libs/"
dest: "/home/AnIS/Backend_gradle/build/libs/"
mode: 0777
- name: Copy angular build files
copy:
src: "./../Angular/dist/Angular/"
dest: "/home/AnIS/Angular/dist/Angular/"
mode: 0777
- name: Copy angular nginx files
copy:
src: "./../Angular/nginx/"
dest: "/home/AnIS/Angular/nginx/"
mode: 0777
- name: Copy global nginx files
copy:
src: "./../nginx-global/"
dest: "/home/AnIS/nginx-global/"
mode: 0777
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.