Skip to content

Instantly share code, notes, and snippets.

@sebamontini
Created May 19, 2017 01:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebamontini/005f37bfce38717f3186f5f1f2e7788f to your computer and use it in GitHub Desktop.
Save sebamontini/005f37bfce38717f3186f5f1f2e7788f to your computer and use it in GitHub Desktop.
mstaravin.yml
- name: create symlink blablabla
file:
src: "/etc/nginx/sites-available/{{item}}"
dest: "/etc/nginx/sites-enabled/{{item}}"
state: link
with_items:
- audio
- static
- thumbs
- vod
where: lalalal
tagas:
- asdqweasdqwe
@Mstaaravin
Copy link

  - name: Copy vhost files for {{ ROLE }}
    template:
       src: '~/ansible/files/etc/nginx/sites-available/{{ item }}.j2'
       dest: '/etc/nginx/sites-available/{{ item }}'
       backup: yes
    with_items:
      - audio
      - static
      - thumbs
      - vod
    when: ('{{ ROLE }}' == "ngi")
    tags:
       - ngi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment