Serial needs to be on the playbook, not the task
This commit is contained in:
parent
7e377baeb5
commit
25916e41bd
1 changed files with 1 additions and 2 deletions
|
@ -7,6 +7,7 @@
|
||||||
hosts: backup_clients
|
hosts: backup_clients
|
||||||
user: root
|
user: root
|
||||||
gather_facts: False
|
gather_facts: False
|
||||||
|
serial: 5
|
||||||
# host_backup_targets set in host_vars or group_vars
|
# host_backup_targets set in host_vars or group_vars
|
||||||
# global_backup_targets can be defined in vars, group_vars/all or anywhere
|
# global_backup_targets can be defined in vars, group_vars/all or anywhere
|
||||||
# take the 'echo' out below for it to actually run
|
# take the 'echo' out below for it to actually run
|
||||||
|
@ -22,7 +23,6 @@
|
||||||
local_action: "shell echo rdiff-backup ${inventory_hostname}::${item} /fedora_backups/${inventory_hostname}/`basename ${item}`"
|
local_action: "shell echo rdiff-backup ${inventory_hostname}::${item} /fedora_backups/${inventory_hostname}/`basename ${item}`"
|
||||||
with_items: $global_backup_targets
|
with_items: $global_backup_targets
|
||||||
when: global_backup_targets is defined
|
when: global_backup_targets is defined
|
||||||
serial: 5
|
|
||||||
async: 100000
|
async: 100000
|
||||||
poll: 120
|
poll: 120
|
||||||
|
|
||||||
|
@ -30,7 +30,6 @@
|
||||||
local_action: "shell echo rdiff-backup ${inventory_hostname}::${item} /fedora_backups/${inventory_hostname}/`basename ${item}`"
|
local_action: "shell echo rdiff-backup ${inventory_hostname}::${item} /fedora_backups/${inventory_hostname}/`basename ${item}`"
|
||||||
with_items: $host_backup_targets
|
with_items: $host_backup_targets
|
||||||
when: host_backup_targets is defined
|
when: host_backup_targets is defined
|
||||||
serial: 5
|
|
||||||
async: 100000
|
async: 100000
|
||||||
poll: 120
|
poll: 120
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue