問題文
One repository holds the plays for a test fleet of Junos devices and for a production fleet, and one operator has already reached the production devices with a play that was meant for the test ones. Which arrangement of the inventory does the documentation put forward for that?
選択肢
- Define the hosts of one environment in each inventory file, so that a run against one of those files is unable to reach the devices of the other.
- Define every host in one inventory file and tell the two fleets apart by group, so that a play is unable to run until its pattern names one group.
- Define every host in one inventory file and give the production hosts a second alias, so that a run reaches them only while both of the aliases have been named.
- Define every host in one inventory file and set a variable on each of them that names its environment, so that a task is skipped until that variable has been read.