ansible/playbooks/deactivate_modernpaste_paste.yml

12 lines
475 B
YAML
Raw Normal View History

# requires --extra-vars="target='modernpaste01.phx2.fedoraproject.org' paste='WMk4~kSfeW1OUNsLjF8hlMnRi-rYnlYzizqToCmG3BY='"
# where target is the box to run it on (usually modernpaste01.phx2 or modernpaste01.stg.phx2)
# and where paste is the encrypted paste ID of the paste.
- name: Deactivates a modern-paste paste
hosts: "{{ target }}"
user: root
tasks:
- name: Run deactivate-paste.py
command: "python /usr/local/bin/deactivate-paste.py {{paste}}"