12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- ---
- - name: Dependencies installed
- community.general.pkgng:
- name: py38-pip,py38-cryptography,py38-pillow,rust,libxslt,libxml2,py38-ldap,yarn,git-tiny,py38-cffi,py38-psycopg2
- state: latest
- - name: Source folder exists
- file:
- path: /usr/local/src
- owner: root
- mode: 0755
- state: directory
- - name: Tandoor source @ master
- git:
- repo: "https://github.com/vabene1111/recipes.git"
- dest: /usr/local/src/tandoor
- update: yes
- force: yes
- tags:
- - update
- - name: Tandoor UI built
- shell:
- cmd: yarn install && yarn build
- chdir: /usr/local/src/tandoor/vue
- tags:
- - update
- - name: Nginx location file installed
- copy:
- src: nginx-location.conf
- dest: /usr/local/etc/nginx/locations/tandoor.conf
- mode: 0644
- notify: Nginx restarted
- - name: Tandoor env file installed
- template:
- src: envrc.j2
- dest: /usr/local/src/tandoor/.env
- owner: root
- mode: 0644
- - name: Tandoor requirements up to date
- pip:
- requirements: /usr/local/src/tandoor/requirements.txt
- executable: pip
- tags:
- - update
- - name: Tandoor migrations up to date
- command: python3.8 /usr/local/src/tandoor/manage.py migrate
- - name: Tandoor static files copied
- command: python3.8 /usr/local/src/tandoor/manage.py collectstatic --noinput
- - name: Tandoor immortal file installed
- template:
- src: immortal.yml.j2
- dest: /usr/local/etc/immortal/tandoor.yml
- owner: root
- mode: 0644
- notify: Immortal restarted
|