Created
October 1, 2015 03:37
-
-
Save zamoose/647e55b5b1c8e972cec4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Useful symlinks for admin shortcuts | |
- name: Nginx config symlinks | |
file: | |
src: /etc/nginx/conf.d/{{ item.site.url }}.conf | |
dest: /sites/{{ account_id }}/{{ item.site.url }}/nginx.conf | |
state: link | |
with_items: wp | |
when: wp is defined | |
tags: [ 'wordpress' ] | |
- name: Nginx access log symlinks | |
file: | |
src: /var/log/nginx/{{ item.site.url }}.access.log | |
dest: /sites/{{ account_id }}/{{ item.site.url }}/nginx-access.log | |
state: link | |
with_items: wp | |
when: wp is defined | |
tags: [ 'wordpress' ] | |
- name: Nginx error log symlinks | |
file: | |
src: /var/log/nginx/{{ item.site.url }}.error.log | |
dest: /sites/{{ account_id }}/{{ item.site.url }}/nginx-error.log | |
state: link | |
with_items: wp | |
when: wp is defined | |
tags: [ 'wordpress' ] | |
- name: WordPress directory symlinks | |
file: | |
src: /var/www/html/{{ account_id }}/{{ item.site.url }}/wordpress | |
dest: /sites/{{ account_id }}/{{ item.site.url }}/wordpress | |
state: link | |
with_items: wp | |
when: wp is defined | |
tags: [ 'wordpress' ] | |
- name: wp-config symlinks | |
file: | |
src: /var/www/html/{{ account_id }}/{{ item.site.url }}/wp-config.php | |
dest: /sites/{{ account_id }}/{{ item.site.url }}/wp-config.php | |
state: link | |
with_items: wp | |
when: wp is defined | |
tags: [ 'wordpress' ] | |
- name: WordPress uploads symlinks | |
file: | |
src: /mnt/nfs/data/{{ item.site.url }}/uploads | |
dest: /sites/{{ account_id }}/{{ item.site.url }}/uploads | |
state: link | |
with_items: wp | |
when: wp is defined | |
tags: [ 'wordpress' ] | |
- name: WordPress directory symlinks | |
file: | |
src: /var/www/html/{{ account_id }}/{{ item.site.url }}/wordpress | |
dest: /sites/{{ account_id }}/{{ item.site.url }}/wordpress | |
state: link | |
with_items: wp | |
when: wp is defined | |
tags: [ 'wordpress' ] | |
- name: PHP-FPM config symlinks | |
file: | |
src: /opt/remi/php56/root/etc/php-fpm.d/www.conf | |
dest: /sites/{{ account_id }}/{{ item.site.url }}/php-fpm-www-pool.conf | |
state: link | |
with_items: wp | |
when: wp is defined | |
tags: [ 'wordpress' ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment