style: make ansible-lint happier
This commit is contained in:
@@ -1,44 +1,46 @@
|
||||
---
|
||||
|
||||
- name: git mastodon
|
||||
- name: Git mastodon
|
||||
remote_user: mastodon
|
||||
git:
|
||||
ansible.builtin.git:
|
||||
repo: "https://github.com/mastodon/mastodon.git"
|
||||
dest: "{{ mastodon_home }}/live"
|
||||
version: "v{{ mastodon_version }}"
|
||||
|
||||
- name: bundle config command
|
||||
- name: Bundle config command
|
||||
remote_user: mastodon
|
||||
shell: |
|
||||
bash -lic "bundle config deployment 'true' && bundle config without 'development test'"
|
||||
args:
|
||||
ansible.builtin.command:
|
||||
cmd: |
|
||||
bash -lic "bundle config deployment 'true' && bundle config without 'development test'"
|
||||
creates: "{{ mastodon_home }}/.bundle/config"
|
||||
chdir: "{{ mastodon_home }}/live"
|
||||
|
||||
- name: bundle install
|
||||
- name: Bundle install
|
||||
remote_user: mastodon
|
||||
shell: |
|
||||
bash -lic "bundle install -j$(getconf _NPROCESSORS_ONLN)"
|
||||
args:
|
||||
ansible.builtin.command:
|
||||
cmd: |
|
||||
bash -lic "bundle install -j$(getconf _NPROCESSORS_ONLN)"
|
||||
chdir: "{{ mastodon_home }}/live"
|
||||
changed_when: true
|
||||
|
||||
- name: yarn install
|
||||
- name: Yarn install
|
||||
remote_user: mastodon
|
||||
shell: |
|
||||
bash -lic "yarn install --pure-lockfile"
|
||||
args:
|
||||
ansible.builtin.command:
|
||||
cmd: |
|
||||
bash -lic "yarn install --pure-lockfile"
|
||||
chdir: "{{ mastodon_home }}/live"
|
||||
changed_when: true
|
||||
|
||||
- name: create bin dir
|
||||
- name: Create bin dir
|
||||
remote_user: mastodon
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ mastodon_home }}/bin"
|
||||
state: directory
|
||||
mode: '0750'
|
||||
|
||||
- name: template scripts
|
||||
- name: Template scripts
|
||||
remote_user: mastodon
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "{{ item }}.j2"
|
||||
dest: "{{ mastodon_home }}/bin/{{ item }}"
|
||||
mode: '0750'
|
||||
@@ -46,17 +48,18 @@
|
||||
- remove_media.sh
|
||||
- remove_preview_cards.sh
|
||||
|
||||
- name: install services
|
||||
template:
|
||||
- name: Install services
|
||||
ansible.builtin.template:
|
||||
src: "{{ item }}.j2"
|
||||
dest: "/etc/systemd/system/{{ item }}"
|
||||
mode: 0644
|
||||
loop: &mastodon_services
|
||||
- "mastodon-sidekiq.service"
|
||||
- "mastodon-streaming.service"
|
||||
- "mastodon-web.service"
|
||||
|
||||
- name: run services
|
||||
systemd:
|
||||
- name: Run services
|
||||
ansible.builtin.systemd:
|
||||
name: "{{ item }}"
|
||||
daemon_reload: true
|
||||
state: started
|
||||
|
Reference in New Issue
Block a user