您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

31 行
631B

  1. ---
  2. - name: debian packages
  3. apt:
  4. pkg:
  5. - wireguard
  6. - jo
  7. - name: ansible local facts directory
  8. file:
  9. path: /etc/ansible/facts.d
  10. state: directory
  11. - name: private key
  12. command: sh -c "umask 077; wg genkey > /etc/wireguard/private_key"
  13. args:
  14. creates: /etc/wireguard/private_key
  15. notify: gather facts again
  16. - name: ansible local facts
  17. copy:
  18. src: wireguard-local-facts.sh
  19. dest: /etc/ansible/facts.d/wireguard.fact
  20. mode: 0750
  21. notify: gather facts again
  22. - name: flush handlers
  23. ansible.builtin.meta: flush_handlers
  24. - include_tasks: "method/{{wireguard_configuration_method}}.yaml"