--limit

From wikieduonline
Revision as of 13:09, 25 November 2020 by Welcome (talk | contribs) (Created page with " --- - name: Force limit # 'all' is okay here, because the fail task will force the user to specify a limit on the command line, using -l or --limit hosts: 'all' t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
---
- name: Force limit
  # 'all' is okay here, because the fail task will force the user to specify a limit on the command line, using -l or --limit
  hosts: 'all'

  tasks:
  - name: checking limit arg
    fail:
      msg: "you must use -l or --limit - when you really want to use all hosts, use -l 'all'"
    when: ansible_limit is not defined
    run_once: true


See also[edit]

Advertising: