ansible pre commit:https的镜像 源码

choosy6430 25 0 ZIP 2021-04-08 08:04:06

Ansible预先提交挂钩 Ansible钩子。 ansible-syntax-check:挂钩针对声明的剧本运行ansible --syntax-check 。 ansible-vault-check:该钩子验证文件名中具有vault的文件是否确实已存储。 要求 预先提交1.2或更高版本。 Python 2.7或3.6或更高版本。 安装 将以下内容添加到您的.pre-commit-config.yaml : - repo : https://git.shore.co.il/ansible/ansible-pre-commit.git sha : v0.10.0 hooks : - id : ansible-syntax-check files : site.yml # In case you want to specify other playbook fi

用户评论
请输入评论内容
评分:
暂无评论