|
35 | 35 | when:
|
36 | 36 | - (ansible_distribution == "RedHat" or ansible_distribution == "CentOS" or ansible_distribution == "SLES")
|
37 | 37 | - capstone_installed.rc != 0
|
| 38 | + - (ansible_architecture !+ "riscv64") |
38 | 39 | tags: capstone_source
|
39 | 40 |
|
40 | 41 | - name: Extract capstone {{ capstone_version }}
|
|
45 | 46 | when:
|
46 | 47 | - (ansible_distribution == "RedHat" or ansible_distribution == "CentOS" or ansible_distribution == "SLES")
|
47 | 48 | - capstone_installed.rc != 0
|
| 49 | + - (ansible_architecture !+ "riscv64") |
48 | 50 | tags: capstone_source
|
49 | 51 |
|
| 52 | +- name: Set architecture variable for x64 |
| 53 | + set_fact: capstone_architecture=X86 |
| 54 | + when: ansible_architecture == "x86_64" |
| 55 | + |
| 56 | +- name: Set architecture variable for arm32 |
| 57 | + set_fact: capstone_architecture=ARM |
| 58 | + when: ansible_architecture == "armv7l" |
| 59 | + |
| 60 | +- name: Set architecture variable for aarch64 |
| 61 | + set_fact: capstone_architecture=Aarch64 |
| 62 | + when: ansible_architecture == "aarch64" |
| 63 | + |
| 64 | +- name: Set architecture variable for ppc64le |
| 65 | + set_fact: capstone_architecture=PowerPC |
| 66 | + when: ansible_architecture == "ppc64le" |
| 67 | + |
| 68 | +- name: Set architecture variable for s390x |
| 69 | + set_fact: capstone_architecture=SystemZ |
| 70 | + when: ansible_architecture == "s390x" |
| 71 | + |
50 | 72 | - name: Build and install capstone {{ capstone_version }}
|
51 | 73 | shell: cd /tmp/capstone-{{ capstone_version }}} && ./make.sh && PREFIX=/usr/local ./make.sh install
|
52 | 74 | when:
|
53 | 75 | - (ansible_distribution == "RedHat" or ansible_distribution == "CentOS" or ansible_distribution == "Ubuntu" or ansible_distribution == "SLES")
|
54 | 76 | - capstone_installed.rc != 0
|
| 77 | + - (ansible_architecture !+ "riscv64") |
55 | 78 | tags: capstone_source
|
56 | 79 |
|
57 | 80 | - name: Remove downloaded packages for capstone {{ capstone_version }}
|
|
0 commit comments