Skip to content
Snippets Groups Projects
Commit 68525e6f authored by Jonas Leder's avatar Jonas Leder
Browse files

set mastodon version through env variable

parent 9551851a
Branches
Tags
No related merge requests found
- name: fix K8S DNS - name: fix K8S DNS
hosts: all hosts: all
become: true
tasks: tasks:
- name: remove old DNS config - name: remove old DNS config
ansible.builtin.file: ansible.builtin.file:
...@@ -16,4 +17,3 @@ ...@@ -16,4 +17,3 @@
dest: /var/lib/kubelet/kubeadm-flags.env dest: /var/lib/kubelet/kubeadm-flags.env
content: | content: |
KUBELET_KUBEADM_ARGS="--container-runtime-endpoint=unix:///var/run/containerd/containerd.sock --pod-infra-container-image=registry.k8s.io/pause:3.9 --resolv-conf=/etc/resolv.conf" KUBELET_KUBEADM_ARGS="--container-runtime-endpoint=unix:///var/run/containerd/containerd.sock --pod-infra-container-image=registry.k8s.io/pause:3.9 --resolv-conf=/etc/resolv.conf"
\ No newline at end of file
- name: update mastodon server - name: update mastodon server
hosts: all hosts: all
vars:
mastodon_version: {{ mastodon_version }}
tasks: tasks:
- name: 'update packages' - name: 'update packages'
apt: apt:
...@@ -21,14 +23,6 @@ ...@@ -21,14 +23,6 @@
shell: | shell: |
cd /home/mastodon/live cd /home/mastodon/live
git fetch --tags git fetch --tags
- name: 'determine latest mastodon version'
become: yes
become_user: mastodon
become_method: su
shell: |
cd /home/mastodon/live
git describe --tags $(git rev-list --tags --max-count=1)
register: mastodon_version
- name: 'update mastodon' - name: 'update mastodon'
become: yes become: yes
become_user: mastodon become_user: mastodon
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment