📜  如何在 ansible 中使用标签 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:55.591000             🧑  作者: Mango

代码示例1
# Tags goes at same indentation as name or service: 
- name: Create Postgres Container 
  tags: createcontainer
  docker_container:
    name: mypostgres
    ...
# Then in the command line:
ansible-playbook myplaybook.yaml --tags createcontainer