provisioning work
added timezone handling and removed flickr2markdown. also clones my pelican-plugins fork instead of the official one.
This commit is contained in:
parent
7d0efa77dc
commit
3009012319
@ -49,29 +49,20 @@
|
|||||||
|
|
||||||
- name: clone pelican-plugins
|
- name: clone pelican-plugins
|
||||||
git:
|
git:
|
||||||
repo=https://github.com/getpelican/pelican-plugins.git
|
repo=git@github.com:xsteadfastx/pelican-plugins.git
|
||||||
dest=/vagrant/pelican-plugins
|
dest=/vagrant/pelican-plugins
|
||||||
accept_hostkey=yes
|
|
||||||
|
|
||||||
- name: clone flickr2markdown
|
- name: set timezone
|
||||||
git:
|
|
||||||
repo=https://github.com/xsteadfastx/flickr2markdown.git
|
|
||||||
dest=/opt/flickr2markdown
|
|
||||||
sudo: yes
|
|
||||||
|
|
||||||
- name: install flickr2markdown deps
|
|
||||||
pip:
|
|
||||||
requirements=/opt/flickr2markdown/requirements.txt
|
|
||||||
virtualenv=/opt/flickr2markdown/env
|
|
||||||
virtualenv_command="virtualenv -p /usr/bin/python3"
|
|
||||||
sudo: yes
|
|
||||||
|
|
||||||
- name: copy flickr2markdown shellscript
|
|
||||||
copy:
|
copy:
|
||||||
src=files/flickr2markdown
|
content="Europe/Berlin"
|
||||||
dest=/usr/local/bin/flickr2markdown
|
dest=/etc/timezone
|
||||||
mode=755
|
owner=root
|
||||||
|
group=root
|
||||||
|
mode=0644
|
||||||
|
backup=yes
|
||||||
sudo: yes
|
sudo: yes
|
||||||
|
notify:
|
||||||
|
- update timezone
|
||||||
|
|
||||||
- name: export variables
|
- name: export variables
|
||||||
lineinfile:
|
lineinfile:
|
||||||
@ -87,3 +78,10 @@
|
|||||||
global=yes
|
global=yes
|
||||||
state=present
|
state=present
|
||||||
sudo: yes
|
sudo: yes
|
||||||
|
|
||||||
|
handlers:
|
||||||
|
|
||||||
|
- name: update timezone
|
||||||
|
command:
|
||||||
|
dpkg-reconfigure --frontend moninteractive tzdata
|
||||||
|
sudo: yes
|
||||||
|
Loading…
Reference in New Issue
Block a user