add 'version_add'
This commit is contained in:
parent
d8d90ecb03
commit
8f3a2a8e3d
1 changed files with 3 additions and 7 deletions
|
@ -62,7 +62,7 @@ options:
|
||||||
required: false
|
required: false
|
||||||
default: "no"
|
default: "no"
|
||||||
choices: ["yes", "no"]
|
choices: ["yes", "no"]
|
||||||
version_added: "1.3"
|
version_added: "2.0"
|
||||||
|
|
||||||
update_cache:
|
update_cache:
|
||||||
description:
|
description:
|
||||||
|
@ -72,12 +72,13 @@ options:
|
||||||
default: "no"
|
default: "no"
|
||||||
choices: ["yes", "no"]
|
choices: ["yes", "no"]
|
||||||
|
|
||||||
upgrade
|
upgrade:
|
||||||
description:
|
description:
|
||||||
- Whether or not to upgrade whole system
|
- Whether or not to upgrade whole system
|
||||||
required: false
|
required: false
|
||||||
default: "no"
|
default: "no"
|
||||||
choices: ["yes", "no"]
|
choices: ["yes", "no"]
|
||||||
|
version_added: "2.0"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
|
@ -153,11 +154,6 @@ def update_package_db(module):
|
||||||
else:
|
else:
|
||||||
module.fail_json(msg="could not update package db")
|
module.fail_json(msg="could not update package db")
|
||||||
|
|
||||||
def upgrade(module):
|
|
||||||
cmdupgrade = "pacman -Suq --noconfirm"
|
|
||||||
cmdneedrefresh = "pacman -Supq"
|
|
||||||
rc, stdout, stderr = module.run_command(cmdneedrefresh, check_rc=False)
|
|
||||||
|
|
||||||
def upgrade(module):
|
def upgrade(module):
|
||||||
cmdupgrade = "pacman -Suq --noconfirm"
|
cmdupgrade = "pacman -Suq --noconfirm"
|
||||||
cmdneedrefresh = "pacman -Supq"
|
cmdneedrefresh = "pacman -Supq"
|
||||||
|
|
Loading…
Reference in a new issue