123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- ---
- - 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: 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
|