| # CLDR Commit Checker playbook |
| - name: ensure cldrcc group is there |
| - name: ensure cldrcc user is there |
| append: yes # add to the groups, do not remove |
| - name: set up /home/cldrcc/.ssh/ |
| - name: set up /home/cldrcc/.ssh/authorized_keys |
| src: local-vars/cldrcc/id_rsa.pub |
| dest: /home/cldrcc/.ssh/authorized_keys |
| - name: set up /home/cldrcc/public_html/ |
| path: /home/cldrcc/public_html/ |
| - name: set up github-markdown.css |
| dest: /home/cldrcc/public_html/github-markdown.css |
| url: https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/4.0.0/github-markdown.min.css |
| # from https://github.com/sindresorhus/github-markdown-css |
| - name: Setup publication and indexing |
| path: /etc/nginx/sites-enabled/default |
| location ~ ^/cldrcc/(.*)$ { |
| alias /home/cldrcc/public_html/$1; |
| marker: '# {mark} ANSIBLE MANAGED COMMIT CHECKER BLOCK' |
| insertafter: '^[\s]*server_name' # the LAST uncommented server block |
| notify: 'Restart Nginx Again' |
| - name: Restart Nginx Again |