@@ -56,43 +56,15 @@ class legba(BaseModule):
5656
5757 deps_ansible = [
5858 {
59- "name" : "Download legba (x86) " ,
59+ "name" : "Download legba" ,
6060 "unarchive" : {
61- "src" : "https://github.com/evilsocket/legba/releases/download/#{BBOT_MODULES_LEGBA_VERSION}/legba-#{BBOT_MODULES_LEGBA_VERSION}-linux-x86_64 .tar.gz" ,
61+ "src" : "https://github.com/evilsocket/legba/releases/download/#{BBOT_MODULES_LEGBA_VERSION}/legba-#{BBOT_MODULES_LEGBA_VERSION}-#{BBOT_OS}-#{BBOT_CPU_ARCH_RUST} .tar.gz" ,
6262 "dest" : "#{BBOT_TEMP}" ,
63- "include" : "legba-#{BBOT_MODULES_LEGBA_VERSION}-linux-x86_64 /legba" ,
63+ "include" : "legba-#{BBOT_MODULES_LEGBA_VERSION}-#{BBOT_OS}-#{BBOT_CPU_ARCH_RUST} /legba" ,
6464 "remote_src" : True ,
65- },
66- "when" : "ansible_facts['system'] == 'Linux' and ansible_facts['architecture'] == 'x86_64'" ,
67- },
68- {
69- "name" : "Install legba (x86)" ,
70- "copy" : {
71- "src" : "#{BBOT_TEMP}/legba-#{BBOT_MODULES_LEGBA_VERSION}-linux-x86_64/legba" ,
72- "dest" : "#{BBOT_TOOLS}/" ,
73- "mode" : "u+x,g+x,o+x" ,
74- },
75- "when" : "ansible_facts['system'] == 'Linux' and ansible_facts['architecture'] == 'x86_64'" ,
76- },
77- {
78- "name" : "Download legba (ARM64)" ,
79- "unarchive" : {
80- "src" : "https://github.com/evilsocket/legba/releases/download/#{BBOT_MODULES_LEGBA_VERSION}/legba-#{BBOT_MODULES_LEGBA_VERSION}-linux-arm64.tar.gz" ,
81- "dest" : "#{BBOT_TEMP}" ,
82- "include" : "legba-#{BBOT_MODULES_LEGBA_VERSION}-linux-arm64/legba" ,
83- "remote_src" : True ,
84- },
85- "when" : "ansible_facts['system'] == 'Linux' and ansible_facts['architecture'] == 'aarch64'" ,
86- },
87- {
88- "name" : "Install legba (ARM64)" ,
89- "copy" : {
90- "src" : "#{BBOT_TEMP}/legba-#{BBOT_MODULES_LEGBA_VERSION}-linux-arm64/legba" ,
91- "dest" : "#{BBOT_TOOLS}/" ,
9265 "mode" : "u+x,g+x,o+x" ,
93- },
94- "when" : "ansible_facts['system'] == 'Linux' and ansible_facts['architecture'] == 'aarch64'" ,
95- },
66+ }
67+ }
9668 ]
9769
9870 async def setup (self ):
0 commit comments