refactor: standardize tasks’ name
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
- name: Install redis
|
||||
ansible.builtin.include_tasks: redis.yml
|
||||
|
||||
- name: Mastodon user
|
||||
- name: Create mastodon user
|
||||
ansible.builtin.user:
|
||||
name: mastodon
|
||||
comment: "John Mastodon"
|
||||
@@ -17,7 +17,7 @@
|
||||
shell: /bin/bash
|
||||
home: "{{ mastodon_home }}"
|
||||
|
||||
- name: Mastodon .ssh dir
|
||||
- name: Create mastodon .ssh dir
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
path: "{{ mastodon_home }}/.ssh"
|
||||
@@ -25,7 +25,7 @@
|
||||
owner: mastodon
|
||||
group: mastodon
|
||||
|
||||
- name: Ssh for mastodon user
|
||||
- name: Set ssh for mastodon user
|
||||
ansible.builtin.copy:
|
||||
remote_src: true
|
||||
src: /root/.ssh/authorized_keys
|
||||
|
@@ -1,13 +1,13 @@
|
||||
---
|
||||
|
||||
- name: Git mastodon
|
||||
- name: Get mastodon git
|
||||
remote_user: mastodon
|
||||
ansible.builtin.git:
|
||||
repo: "https://github.com/mastodon/mastodon.git"
|
||||
dest: "{{ mastodon_home }}/live"
|
||||
version: "v{{ mastodon_version }}"
|
||||
|
||||
- name: Bundle config command
|
||||
- name: Exec bundle
|
||||
remote_user: mastodon
|
||||
ansible.builtin.command:
|
||||
cmd: |
|
||||
@@ -15,7 +15,7 @@
|
||||
creates: "{{ mastodon_home }}/.bundle/config"
|
||||
chdir: "{{ mastodon_home }}/live"
|
||||
|
||||
- name: Bundle install
|
||||
- name: Install bundle
|
||||
remote_user: mastodon
|
||||
ansible.builtin.command:
|
||||
cmd: |
|
||||
@@ -23,7 +23,7 @@
|
||||
chdir: "{{ mastodon_home }}/live"
|
||||
changed_when: true
|
||||
|
||||
- name: Yarn install
|
||||
- name: Install yarn
|
||||
remote_user: mastodon
|
||||
ansible.builtin.command:
|
||||
cmd: |
|
||||
@@ -38,7 +38,7 @@
|
||||
state: directory
|
||||
mode: '0750'
|
||||
|
||||
- name: Template scripts
|
||||
- name: Put template scripts
|
||||
remote_user: mastodon
|
||||
ansible.builtin.template:
|
||||
src: "{{ item }}.j2"
|
||||
|
@@ -7,12 +7,12 @@
|
||||
force: true
|
||||
mode: 0644
|
||||
|
||||
- name: Gpg dearmor key
|
||||
- name: Dearmor gpg key
|
||||
ansible.builtin.command:
|
||||
cmd: "gpg --dearmor --yes -o {{ mastodon_nodejs_key_path }} /tmp/nodesource.gpg.key"
|
||||
changed_when: true
|
||||
|
||||
- name: Node source repo
|
||||
- name: Set node source repo
|
||||
ansible.builtin.copy:
|
||||
content: "deb [signed-by={{ mastodon_nodejs_key_path }}] https://deb.nodesource.com/node_16.x {{ ansible_facts['distribution_release'] }} main"
|
||||
dest: /etc/apt/sources.list.d/nodesource.list
|
||||
|
@@ -1,6 +1,6 @@
|
||||
---
|
||||
|
||||
- name: Git rbenv
|
||||
- name: Get rbenv git
|
||||
remote_user: mastodon
|
||||
ansible.builtin.git:
|
||||
repo: "https://github.com/rbenv/rbenv.git"
|
||||
@@ -8,7 +8,7 @@
|
||||
single_branch: true
|
||||
version: master
|
||||
|
||||
- name: Git ruby-build
|
||||
- name: Get ruby-build git
|
||||
remote_user: mastodon
|
||||
ansible.builtin.git:
|
||||
repo: https://github.com/rbenv/ruby-build.git
|
||||
|
@@ -7,12 +7,12 @@
|
||||
mode: 0644
|
||||
force: true
|
||||
|
||||
- name: Gpg dearmor key
|
||||
- name: Dearmor gpg key
|
||||
ansible.builtin.command:
|
||||
cmd: "gpg --dearmor --yes -o {{ mastodon_yarn_key_path }} /tmp/yarn.gpg.key"
|
||||
changed_when: true
|
||||
|
||||
- name: Yarn source repo
|
||||
- name: Set yarn source repo
|
||||
ansible.builtin.copy:
|
||||
content: "deb [signed-by={{ mastodon_yarn_key_path }}] https://dl.yarnpkg.com/debian stable main"
|
||||
dest: /etc/apt/sources.list.d/yarn.list
|
||||
|
Reference in New Issue
Block a user