Discourse の更新用 Ansible プレイブック

ああ、すみません、はい、プライベートリポジトリです。そんなことはほとんどしません!そのことの無益さに恥ずかしかったに違いありません… :rofl:

そのファイルはこちらです:

---
- hosts: all
  vars:
    ansible_python_interpreter: auto_silent

  tasks:
  - name: Update server OS (apt update && apt dist-upgrade && apt autoremove && apt autoclean)
    become: yes
    apt:
      update-cache: yes
      upgrade: dist
      autoremove: yes
      autoclean: yes

  # - name: Update Discourse code from GitHub (cd /var/discourse && git pull)
  #   become: yes
  #   git:
  #     repo: 'https://github.com/discourse/discourse_docker.git'
  #     dest: /var/discourse
  #     update: yes
  #     version: master
  #   register: gitcommit

  # - name: Rebuild the Discourse container (cd /var/discourse && ./launcher rebuild app)
  #   become: yes
  #   shell: ./launcher rebuild app
  #   args:
  #     chdir: /var/discourse
  #   when: gitcommit.changed

  # - name: Clean up stopped containers (cd /var/discourse && ./launcher cleanup)
  #   become: yes
  #   shell: echo Y | ./launcher cleanup
  #   args:
  #     chdir: /var/discourse

  # - name: Reboot machine with default Ansible settings
  #   reboot:
  #   become: yes

ご覧のとおり、現状ではほとんど役に立ちません。

OS、Discourse、ランチャーのクリーンアップを自動化するための共有スクリプトの開発、または(ボーナスポイントとして)各Discourseインスタンスの変更履歴に書き込むことに関心があれば、喜んでお手伝いします。私一人では、独自のAnsibleプレイブックを維持するほどの価値はありません。

「いいね!」 1