文件操作 - pta_notify.yml
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3.12/site-packages/ansible_collections/cyberark/pas/rulebooks/pta_notify.yml
编辑文件内容
--- - hosts: all connection: local collections: - cyberark.pas tasks: - name: Sending an e-mail using Gmail SMTP servers community.general.mail: host: SMTPSERVER port: PORT username: username@mail.com password: password to: First Last <first.last@mail.com> subject: Ansible-Rulebook Report body: Ansible Rulebook notify of PTA Event '{{ username | ansible.builtin.regex_search('^[a-zA-Z0-9_]+') }}' '{{ eventname }}' from host '{{ station }}' For more info please visit - '{{ eventurl }}' delegate_to: localhost
修改文件时间
将文件时间修改为当前时间的前一年
删除文件