Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

ansible / dma-playbook

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • dma-playbook
  • roles
  • install
  • tasks
  • nginx.yml
  • ansible's avatar
    no message · 7ab547a6
    ansible committed Apr 27, 2018
    7ab547a6
nginx.yml 485 Bytes
BlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
- name: Remove Nginx if exist
  file:
    state: absent
    path: /opt/stack/nginx
- name: Install NginX
  unarchive:
        src: /tmp/source/webgate.3.1.0.zip
        dest: /opt/stack
        remote_src: yes
        group: nginx
        owner: nginx
        mode: 0755
- file:
        path: '/opt/stack/{{ item.dir }}' 
        group: nginx
        owner: nginx
        mode: 0755
        state: directory
        recurse: yes
  with_items:
            - { dir: 'nginx' }