Skip to content

Instantly share code, notes, and snippets.

@BruceZu
Created December 14, 2016 23:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BruceZu/15acf167296662b4dc140d8a53a22fd5 to your computer and use it in GitHub Desktop.
Save BruceZu/15acf167296662b4dc140d8a53a22fd5 to your computer and use it in GitHub Desktop.
Ansible -C --check dryrun
Ansible -C --check. Dry run
@BruceZu
Copy link
Author

BruceZu commented Dec 14, 2016

[root@k8s-09 ~]# ansible all -C -m yum -a 'name=openssl state=latest'
localhost | SUCCESS => {
    "changed": false,
    "changes": {
        "installed": [],
        "updated": []
    },
    "msg": "",
    "rc": 0,
    "results": [
        "All packages providing openssl are up to date"
    ]
}
[root@k8s-09 ~]# ansible all -C -m yum -a 'name=openssl state=absent'
localhost | SUCCESS => {
    "changed": true,
    "changes": {
        "removed": [
            "openssl"
        ]
    },
    "results": []
}
[root@k8s-09 ~]#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment