• Saltstack module ansible 详解


    ansible.list

    Lists available modules.
    :return:
    

    ansible.playbooks

    Run Ansible Playbooks
    
    :param playbook: Which playbook to run.
    :param rundir: Directory to run `ansible-playbook` in. (Default: None)
    :param check: don't make any changes; instead, try to predict some
                  of the changes that may occur (Default: False)
    :param diff: when changing (small) files and templates, show the
                 differences in those files; works great with --check
                 (default: False)
    :param extra_vars: set additional variables as key=value or YAML/JSON, if
                       filename prepend with @, (default: None)
    :param flush_cache: clear the fact cache for every host in inventory
                        (default: False)
    :param forks: specify number of parallel processes to use
                  (Default: 5)
    :param inventory: specify inventory host path or comma separated host
                      list. (Default: None) (Ansible's default is /etc/ansible/hosts)
    :param limit: further limit selected hosts to an additional pattern (Default: None)
    :param list_hosts: outputs a list of matching hosts; does not execute anything else
                       (Default: False)
    :param list_tags: list all available tags (Default: False)
    :param list_tasks: list all tasks that would be executed (Default: False)
    :param module_path: prepend colon-separated path(s) to module library. (Default: None)
    :param skip_tags: only run plays and tasks whose tags do not match these
                      values (Default: False)
    :param start_at_task: start the playbook at the task matching this name (Default: None)
    :param: syntax_check: perform a syntax check on the playbook, but do not execute it
                          (Default: False)
    :param tags: only run plays and tasks tagged with these values (Default: None)
    
    :return: Playbook return
    
    CLI Example:
    
        salt 'ansiblehost'  ansible.playbook playbook=/srv/playbooks/play.yml
    

    ansible.help

    Display help on Ansible standard module.
    
    :param module:
    :return:
    

    我是分割线

  • 相关阅读:
    MySQL存储过程札记
    一个关于 Linux环境下输出操作符 >和>>的问题
    记一次dubbo服务丢失的问题排查
    JDK1.8中的时间处理API
    Redis的懒惰删除与对象共享
    Java内存模型与线程
    Java hotspot即时编译和提前编译
    Java线程安全与锁优化
    Java编译器优化技术
    自动清理SQL Server的数据库日志
  • 原文地址:https://www.cnblogs.com/randomlee/p/Saltstack_module_ansible.html
Copyright © 2020-2023  润新知