mirror of https://github.com/kewlfft/ansible-aur
commit
e643e8f450
|
@ -25,6 +25,13 @@ options:
|
||||||
description:
|
description:
|
||||||
- Name or list of names of the package(s) to install or upgrade.
|
- Name or list of names of the package(s) to install or upgrade.
|
||||||
|
|
||||||
|
ignore_arch:
|
||||||
|
description:
|
||||||
|
- Set to yes to skip architecture check.
|
||||||
|
Only valid with makepkg.
|
||||||
|
type: bool
|
||||||
|
default: no
|
||||||
|
|
||||||
upgrade:
|
upgrade:
|
||||||
description:
|
description:
|
||||||
- Whether or not to upgrade whole system.
|
- Whether or not to upgrade whole system.
|
||||||
|
@ -145,6 +152,8 @@ def install_with_makepkg(module, package):
|
||||||
os.chdir(format(result['Name']))
|
os.chdir(format(result['Name']))
|
||||||
if module.params['skip_pgp_check']:
|
if module.params['skip_pgp_check']:
|
||||||
use_cmd['makepkg'].append('--skippgpcheck')
|
use_cmd['makepkg'].append('--skippgpcheck')
|
||||||
|
if module.params['ignore_arch']:
|
||||||
|
use_cmd['makepkg'].append('-A')
|
||||||
rc, out, err = module.run_command(use_cmd['makepkg'], check_rc=True)
|
rc, out, err = module.run_command(use_cmd['makepkg'], check_rc=True)
|
||||||
os.chdir(current_path)
|
os.chdir(current_path)
|
||||||
return (rc, out, err)
|
return (rc, out, err)
|
||||||
|
@ -201,6 +210,10 @@ def main():
|
||||||
'name': {
|
'name': {
|
||||||
'type': 'list',
|
'type': 'list',
|
||||||
},
|
},
|
||||||
|
'ignore_arch' : {
|
||||||
|
'default': False,
|
||||||
|
'type': 'bool',
|
||||||
|
},
|
||||||
'upgrade': {
|
'upgrade': {
|
||||||
'default': False,
|
'default': False,
|
||||||
'type': 'bool',
|
'type': 'bool',
|
||||||
|
|
Loading…
Reference in New Issue