暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

riot.yml 835B

12345678910111213141516171819202122232425262728
  1. - name: Create temporary Riot directory
  2. file: state=directory path=/root/riot
  3. - name: Download Riot {{ riot_version }} release
  4. get_url:
  5. url="{{ riot_release }}"
  6. dest=/root/riot/riot-{{ riot_version }}.tar.gz
  7. - name: Extract Riot archive
  8. unarchive:
  9. copy: no
  10. src: /root/riot/riot-{{ riot_version }}.tar.gz
  11. dest: /root/riot/
  12. creates: /root/riot/riot-v{{ riot_version }}/index.html
  13. - name: Delete old Riot webroot directory
  14. file: state=absent path=/var/www/riot
  15. - name: Configure Riot
  16. template:
  17. src=root_riot_config.j2
  18. dest=/root/riot/riot-v{{ riot_version }}/config.json
  19. - name: Copy Riot to document root
  20. shell: cp -r /root/riot/riot-v{{ riot_version }} /var/www/riot
  21. - name: Set Riot ownership
  22. action: file owner=www-data group=www-data path=/var/www/riot recurse=yes state=directory