{"id":207,"date":"2023-08-29T11:37:14","date_gmt":"2023-08-29T03:37:14","guid":{"rendered":"http:\/\/xianyijitan.top\/?p=207"},"modified":"2023-08-29T11:37:14","modified_gmt":"2023-08-29T03:37:14","slug":"ansible%e5%b8%b8%e7%94%a8%e6%a8%a1%e5%9d%97","status":"publish","type":"post","link":"https:\/\/xianyijitan.top\/?p=207","title":{"rendered":"Ansible\u5e38\u7528\u6a21\u5757"},"content":{"rendered":"<h2>yum_repository\u6a21\u5757<\/h2>\n<p><strong>Ansible\u4f7f\u7528yum_repository\u6a21\u5757\u521b\u5efa\u6216\u4fee\u6539yum\u6e90\u914d\u7f6e\u6587\u4ef6\u3002<\/strong><\/p>\n<p><strong>\u5e38\u7528\u9009\u9879\uff1a<\/strong><\/p>\n<p>\u200b   <strong>file\uff1a \u6307\u5b9a\u4ed3\u5e93\u6587\u4ef6\u540d<\/strong><br \/>\n\u200b           <strong>name\uff1a\u6307\u5b9a\u4ed3\u5e93\u540d\u79f0<\/strong><br \/>\n\u200b           <strong>description\uff1a:\u6307\u5b9a\u4ed3\u5e93\u63cf\u8ff0<\/strong><br \/>\n\u200b           <strong>baseurl \uff1a\u6307\u5b9a\u6e90\u8def\u5f84<\/strong><br \/>\n\u200b           <strong>enabled \uff1a\u4ed3\u5e93\u662f\u5426\u542f\u7528<\/strong><br \/>\n\u200b           <strong>gpgcheck\uff1a\u4ed3\u5e93\u662f\u5426\u68c0\u6d4bgpgkey<\/strong><br \/>\n\u200b           <strong>state\uff1a\u72b6\u6001\uff0c\u9ed8\u8ba4\u503cpresent \u5efa\u7acb\uff1babsent \u4e3a\u5220\u9664<\/strong><\/p>\n<pre><code class=\"language-shell\"># \u521b\u5efayum\u6e90\n[root@pubserver ansible]# ansible webservers -m yum_repository -a &quot;file=myrepo name=myApp description=&#039;My App&#039; baseurl=ftp:\/\/192.168.88.240\/dvd\/AppStream gpgcheck=no enabled=yes&quot;<\/code><\/pre>\n<h2>yum\u6a21\u5757<\/h2>\n<p><strong>Ansible\u4f7f\u7528yum\u6a21\u5757\u5b89\u88c5\u3001\u5378\u8f7d\u3001\u5347\u7ea7\u8f6f\u4ef6\u5305\u3002<\/strong><\/p>\n<p><strong>\u5e38\u7528\u9009\u9879\uff1a<\/strong><\/p>\n<p>\u200b       <strong>name\uff1a\u5305\u540d<\/strong><br \/>\n\u200b               <strong>state: \u72b6\u6001\u3002present \u5b89\u88c5\uff0c\u5982\u679c\u5df2\u5b89\u88c5\u5219\u5ffd\u7565\uff1babsent\u5378\u8f7d\uff1blatest\u5b89\u88c5\u6216\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c<\/strong><\/p>\n<pre><code class=\"language-shell\"># \u7ed9web1\u5b89\u88c5httpd\n[root@pubserver ansible]# ansible web1 -m yum -a &#039;name=httpd state=present&#039;\n# \u5378\u8f7dhttpd\n[root@pubserver ansible]# ansible web1 -m yum -a &#039;name=httpd state=absent&#039;<\/code><\/pre>\n<h2>service\u6a21\u5757<\/h2>\n<p><strong>Ansible\u4f7f\u7528service\u6a21\u5757\u7ba1\u7406\u7cfb\u7edf\u670d\u52a1\u72b6\u6001\uff08\u542f\u52a8\u3001\u5173\u95ed\u3001\u91cd\u542f\u3001\u5f00\u673a\u81ea\u542f\u52a8\uff09\u3002<\/strong><\/p>\n<p><strong>\u5e38\u7528\u9009\u9879\uff1a<\/strong><\/p>\n<p>\u200b       <strong>name\uff1a\u63a7\u5236\u7684\u670d\u52a1\u540d<\/strong><\/p>\n<p>\u200b       <strong>state\uff1a\u72b6\u6001\u3002 started\u542f\u52a8\uff1bstopped\u5173\u95ed\uff1brestarted\u91cd\u542f<\/strong><\/p>\n<p>\u200b       <strong>enabled\uff1a\u8bbe\u7f6e\u5f00\u673a\u542f\u52a8\u3002yes\u8868\u793a\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f\uff1bno\u8868\u793a\u8bbe\u7f6e\u5f00\u673a\u4e0d\u81ea\u542f<\/strong><\/p>\n<pre><code class=\"language-shell\"># \u8bbe\u7f6ehttpd\u5f00\u673a\u81ea\u542f\uff0c\u5e76\u4e14\u542f\u52a8\u670d\u52a1\n[root@pubserver ansible]# ansible web1 -m service -a &#039;name=httpd state=started enable=yes&#039;<\/code><\/pre>\n<h2>lvg\u6a21\u5757<\/h2>\n<p><strong>\u903b\u8f91\u5377\uff08LVM\uff09\u662fLinux\u7cfb\u7edf\u5bf9\u786c\u76d8\u5206\u533a\u7684\u4e00\u79cd\u7ba1\u7406\u673a\u5236\u3002\u5229\u7528\u903b\u8f91\u5377\u53ef\u4ee5\u52a8\u6001\u7ba1\u7406\u78c1\u76d8\u5b58\u50a8\u7a7a\u95f4\uff0c\u63d0\u9ad8\u78c1\u76d8\u5206\u533a\u7ba1\u7406\u7684\u7075\u6d3b\u6027\u3002<\/strong><\/p>\n<p><strong>\u521b\u5efa\u903b\u8f91\u5377\u7684\u539f\u7406\u662f\uff1a\u628a\u786c\u76d8\u6216\u5206\u533a\u8f6c\u6362\u6210\u7269\u7406\u5377PV\uff1b\u518d\u628a\u4e00\u4e2a\u5230\u591a\u4e2aPV\u7ec4\u5408\u6210\u5377\u7ec4VG\uff1b\u5728VG\u4e0a\u5212\u5206\u903b\u8f91\u5377LV\u3002LV\u53ef\u4ee5\u50cf\u666e\u901a\u5206\u533a\u90a3\u6837\uff0c\u8fdb\u884c\u5206\u533a\u3001\u683c\u5f0f\u5316\u3001\u6302\u8f7d\u4f7f\u7528\u3002<\/strong><\/p>\n<p><strong>Ansible\u4f7f\u7528lvg\u6a21\u5757\u6765\u521b\u5efa\u3001\u5220\u9664\u5377\u7ec4(VG)\uff0c\u4fee\u6539\u5377\u7ec4\u5927\u5c0f\u3002<\/strong><\/p>\n<p><strong>\u5e38\u7528\u9009\u9879\uff1a<\/strong><\/p>\n<p>\u200b       <strong>vg\uff1a\u5b9a\u4e49\u5377\u7ec4\u540d\u3002vg\uff1avolume group<\/strong><\/p>\n<p>\u200b       <strong>pvs\uff1a\u7531\u54ea\u4e9b\u7269\u7406\u5377\u6784\u6210\u3002pvs\uff1aphysical volumes<\/strong><\/p>\n<p>\u200b       <strong>state\uff1a\u72b6\u6001\u3002present \u521b\u5efa\uff1babsent \u5220\u9664<\/strong><\/p>\n<pre><code class=\"language-shell\"># \u521b\u5efa\u7269\u7406\u5377\n[root@web1 ~]# parted \/dev\/nvme0n2 mklabel gpt\n\u4fe1\u606f: You may need to update \/etc\/fstab.\n\n[root@web1 ~]# parted \/dev\/nvme0n2 mkpart primary 1 50%\n\u4fe1\u606f: You may need to update \/etc\/fstab.\n\n[root@web1 ~]# parted \/dev\/nvme0n2 mkpart primary 50% 100% \n\n[root@web1 ~]# lsblk                                                      \nNAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT\nsr0          11:0    1 1024M  0 rom  \nnvme0n1     259:0    0   20G  0 disk \n\u251c\u2500nvme0n1p1 259:1    0    1G  0 part \/boot\n\u2514\u2500nvme0n1p2 259:2    0   19G  0 part \n  \u251c\u2500rl-root 253:0    0   17G  0 lvm  \/\n  \u2514\u2500rl-swap 253:1    0    2G  0 lvm  [SWAP]\nnvme0n2     259:3    0   20G  0 disk \n\u251c\u2500nvme0n2p2 259:5    0   10G  0 part \n\u2514\u2500nvme0n2p1 259:6    0   10G  0 part \nnvme0n3     259:4    0   20G  0 disk \n\n# \u5b89\u88c5\u5de5\u5177\n[root@pubserver ansible]# ansible web1 -m yum -a &#039;name=lvm2&#039;\n\n# \u5728web1\u4e0a\u521b\u5efa\u540d\u4e3amyvg\u7684\u5377\u7ec4\n[root@pubserver ansible]# ansible web1 -m lvg -a &#039;vg=myvg pvs=\/dev\/nvme0n2p1&#039;\n\n[root@web1 ~]# vgs\n  VG   #PV #LV #SN Attr   VSize   VFree  \n  myvg   1   0   0 wz--n- &lt;10.00g &lt;10.00g\n  rl     1   2   0 wz--n- &lt;19.00g      0 \n[root@web1 ~]# pvs\n  PV             VG   Fmt  Attr PSize   PFree  \n  \/dev\/nvme0n1p2 rl   lvm2 a--  &lt;19.00g      0 \n  \/dev\/nvme0n2p1 myvg lvm2 a--  &lt;10.00g &lt;10.00g\n\n# \u6269\u5bb9\n[root@pubserver ansible]# ansible web1 -m lvg -a &#039;vg=myvg pvs=\/dev\/nvme0n2p1,\/dev\/nvme0n2p2&#039;\n\n[root@web1 dev]# vgs\n  VG   #PV #LV #SN Attr   VSize   VFree \n  myvg   2   0   0 wz--n-  19.99g 19.99g\n  rl     1   2   0 wz--n- &lt;19.00g     0 \n[root@web1 dev]# pvs\n  PV             VG   Fmt  Attr PSize   PFree  \n  \/dev\/nvme0n1p2 rl   lvm2 a--  &lt;19.00g      0 \n  \/dev\/nvme0n2p1 myvg lvm2 a--  &lt;10.00g &lt;10.00g\n  \/dev\/nvme0n2p2 myvg lvm2 a--  &lt;10.00g &lt;10.00g\n\n# \u5220\u9664\n[root@pubserver ansible]# ansible web1 -m lvg -a &#039;vg=myvg state=absent&#039;<\/code><\/pre>\n<h2>lvol\u6a21\u5757<\/h2>\n<p><strong>Ansible\u4f7f\u7528lvol\u6a21\u5757\u521b\u5efa\u3001\u5220\u9664\u903b\u8f91\u5377(LV)\uff0c\u4fee\u6539\u903b\u8f91\u5377\u5927\u5c0f\u3002<\/strong><\/p>\n<p><strong>\u5e38\u7528\u9009\u9879\uff1a<\/strong><\/p>\n<p>\u200b       <strong>vg\uff1a\u6307\u5b9a\u5728\u54ea\u4e2a\u5377\u7ec4\u4e0a\u521b\u5efa\u903b\u8f91\u5377<\/strong><\/p>\n<p>\u200b       <strong>lv\uff1a\u521b\u5efa\u7684\u903b\u8f91\u5377\u540d\u3002lv\uff1alogical volume<\/strong><\/p>\n<p>\u200b       <strong>size\uff1a\u903b\u8f91\u5377\u7684\u5927\u5c0f\uff0c\u4e0d\u5199\u5355\u4f4d\uff0c\u4ee5M\u4e3a\u5355\u4f4d<\/strong><\/p>\n<p>\u200b       <strong>state\u72b6\u6001\u3002present \u521b\u5efa\uff1babsent \u5220\u9664<\/strong><\/p>\n<pre><code class=\"language-shell\"># \u5728web1\u4e0a\u521b\u5efa\u540d\u4e3amylv\u7684\u903b\u8f91\u5377\uff0c\u5927\u5c0f\u4e3a2GB\n[root@pubserver ansible]# ansible web1 -m lvol -a &#039;lv=mylv vg=myvg size=2G&#039;\n\n[root@web1 dev]# lvs\n  LV   VG   Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert\n  mylv myvg -wi-a-----   2.00g                                                    \n  root rl   -wi-ao---- &lt;17.00g                                                    \n  swap rl   -wi-ao----   2.00g \n\n#\u5c06mylv\u7684\u903b\u8f91\u5377\u6269\u5bb9\u81f34GB\n[root@pubserver ansible]# ansible web1 -m lvol -a &#039;lv=mylv vg=myvg size=4G&#039;\n[root@web1 dev]# lvs\n  LV   VG   Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert\n  mylv myvg -wi-a-----   4.00g                                                    \n  root rl   -wi-ao---- &lt;17.00g                                                    \n  swap rl   -wi-ao----   2.00g\n\n # \u5f3a\u5236\u5220\u9664\n [root@pubserver ansible]# ansible web1 -m lvol -a &#039;lv=mylv state=absent vg=myvg force=yes&#039;<\/code><\/pre>\n<h2>filesystem\u6a21\u5757<\/h2>\n<p><strong>Ansible\u4f7f\u7528filesystem\u6a21\u5757\u8fdb\u884c\u683c\u5f0f\u5316\uff0c\u5373\u521b\u5efa\u6587\u4ef6\u7cfb\u7edf\u3002<\/strong><\/p>\n<p><strong>\u5e38\u7528\u9009\u9879\uff1a<\/strong><\/p>\n<p>\u200b       <strong>fstype\uff1a\u6307\u5b9a\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b<\/strong><\/p>\n<p>\u200b       <strong>dev\uff1a\u6307\u5b9a\u8981\u683c\u5f0f\u5316\u7684\u8bbe\u5907\uff0c\u53ef\u4ee5\u662f\u5206\u533a\uff0c\u53ef\u4ee5\u662f\u903b\u8f91\u5377<\/strong><\/p>\n<pre><code class=\"language-shell\"># \u683c\u5f0f\u5316\n[root@pubserver ansible]# ansible web1 -m filesystem -a &#039;fstype=xfs dev=\/dev\/myvg\/mylv&#039;\n\n[root@web1 dev]# blkid \/dev\/myvg\/mylv \n\/dev\/myvg\/mylv: UUID=&quot;ebea4fd6-152b-42cd-bbbf-cfacb792e286&quot; BLOCK_SIZE=&quot;512&quot; TYPE=&quot;xfs&quot;<\/code><\/pre>\n<h2>mount\u6a21\u5757<\/h2>\n<p><strong>Ansible\u4f7f\u7528mount\u6a21\u5757\u6302\u8f7d\u6587\u4ef6\u7cfb\u7edf\u3002<\/strong><\/p>\n<p><strong>\u5e38\u7528\u9009\u9879\uff1a<\/strong><\/p>\n<p>\u200b       <strong>path\uff1a\u6302\u8f7d\u70b9\u3002\u5982\u679c\u6302\u8f7d\u70b9\u4e0d\u5b58\u5728\uff0c\u81ea\u52a8\u521b\u5efa<\/strong><\/p>\n<p>\u200b       <strong>src\uff1a\u5f85\u6302\u8f7d\u7684\u8bbe\u5907<\/strong><\/p>\n<p>\u200b       <strong>stype\uff1a\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b<\/strong><\/p>\n<p>\u200b       <strong>state\uff1a\u72b6\u6001\u3002mounted\uff0c\u8868\u793a\u6c38\u4e45\u6302\u8f7d<\/strong><\/p>\n<pre><code class=\"language-shell\"># \u6302\u8f7d\n[root@pubserver ansible]# ansible web1 -m mount -a &#039;path=\/data src=\/dev\/myvg\/mylv fstype=xfs state=mounted&#039;\n[root@web1 dev]# df -h \/data\n\u6587\u4ef6\u7cfb\u7edf               \u5bb9\u91cf  \u5df2\u7528  \u53ef\u7528 \u5df2\u7528% \u6302\u8f7d\u70b9\n\/dev\/mapper\/myvg-mylv  4.0G   61M  4.0G    2% \/data\n\n# \u5378\u8f7d\n[root@pubserver ansible]# ansible web1 -m mount -a &#039;path=\/data state=absent&#039;\n[root@web1 dev]# df -h \/data\ndf: \/data: \u6ca1\u6709\u90a3\u4e2a\u6587\u4ef6\u6216\u76ee\u5f55<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>yum_repository\u6a21\u5757 Ansible\u4f7f\u7528yum_repository\u6a21\u5757\u521b\u5efa\u6216\u4fee\u6539yum\u6e90\u914d\u7f6e\u6587\u4ef6\u3002 \u5e38\u7528\u9009\u9879\uff1a \u200b file\uff1a \u6307\u5b9a\u4ed3\u5e93\u6587\u4ef6\u540d \u200b name\uff1a\u6307\u5b9a\u4ed3\u5e93\u540d\u79f0 \u200b description\uff1a:\u6307\u5b9a\u4ed3\u5e93\u63cf\u8ff0 \u200b baseurl \uff1a\u6307\u5b9a\u6e90\u8def\u5f84 \u200b enabled \uff1a\u4ed3\u5e93\u662f\u5426\u542f\u7528 \u200b gpgcheck\uff1a\u4ed3\u5e93\u662f\u5426\u68c0\u6d4bgpgkey \u200b state\uff1a\u72b6\u6001\uff0c\u9ed8\u8ba4\u503cpresent \u5efa\u7acb\uff1babsent \u4e3a\u5220\u9664 # \u521b\u5efayum\u6e90 [root@pubserver ansible]# ansible webservers -m yum_repository -a &quot;file=myrepo name=myApp description=&#039;My App&#039; baseurl=ftp:\/\/192.168.88.240\/dvd\/AppStream gpgcheck=no enabled=yes&quot; yum\u6a21\u5757 Ansible\u4f7f\u7528yum\u6a21\u5757\u5b89\u88c5\u3001\u5378\u8f7d\u3001\u5347\u7ea7\u8f6f\u4ef6\u5305\u3002 \u5e38\u7528\u9009\u9879\uff1a \u200b name\uff1a\u5305\u540d \u200b state: \u72b6\u6001\u3002present \u5b89\u88c5\uff0c\u5982\u679c\u5df2\u5b89\u88c5\u5219\u5ffd\u7565\uff1babsent\u5378\u8f7d\uff1blatest\u5b89\u88c5\u6216\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c # \u7ed9web1\u5b89\u88c5httpd [root@pubserver ansible]# ansible web1 -m yum -a &#039;name=httpd state=present&#039; # \u5378\u8f7dhttpd [root@pubserver ansible]# ansible web1 -m yum -a &#039;name=httpd state=absent&#039; service\u6a21\u5757 Ansible\u4f7f\u7528service\u6a21\u5757\u7ba1\u7406\u7cfb\u7edf\u670d\u52a1\u72b6\u6001\uff08\u542f\u52a8\u3001\u5173\u95ed\u3001\u91cd\u542f\u3001\u5f00\u673a\u81ea\u542f\u52a8\uff09\u3002 \u5e38\u7528\u9009\u9879\uff1a \u200b name\uff1a\u63a7\u5236\u7684\u670d\u52a1\u540d \u200b state\uff1a\u72b6\u6001\u3002 started\u542f\u52a8\uff1bstopped\u5173\u95ed\uff1brestarted\u91cd\u542f \u200b enabled\uff1a\u8bbe\u7f6e\u5f00\u673a\u542f\u52a8\u3002yes\u8868\u793a\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f\uff1bno\u8868\u793a\u8bbe\u7f6e\u5f00\u673a\u4e0d\u81ea\u542f # \u8bbe\u7f6ehttpd\u5f00\u673a\u81ea\u542f\uff0c\u5e76\u4e14\u542f\u52a8\u670d\u52a1 [root@pubserver ansible]# ansible web1 -m service -a &#039;name=httpd state=started enable=yes&#039; lvg\u6a21\u5757 \u903b\u8f91\u5377\uff08LVM\uff09\u662fLinux\u7cfb\u7edf\u5bf9\u786c\u76d8\u5206\u533a\u7684\u4e00\u79cd\u7ba1\u7406\u673a\u5236\u3002\u5229\u7528\u903b\u8f91\u5377\u53ef\u4ee5\u52a8\u6001\u7ba1\u7406\u78c1\u76d8\u5b58\u50a8\u7a7a\u95f4\uff0c\u63d0\u9ad8\u78c1\u76d8\u5206\u533a\u7ba1\u7406\u7684\u7075\u6d3b\u6027\u3002 \u521b\u5efa\u903b\u8f91\u5377\u7684\u539f\u7406\u662f\uff1a\u628a\u786c\u76d8\u6216\u5206\u533a\u8f6c\u6362\u6210\u7269\u7406\u5377PV\uff1b\u518d\u628a\u4e00\u4e2a\u5230\u591a\u4e2aPV\u7ec4\u5408\u6210\u5377\u7ec4VG\uff1b\u5728VG\u4e0a\u5212\u5206\u903b\u8f91\u5377LV\u3002LV\u53ef\u4ee5\u50cf\u666e\u901a\u5206\u533a\u90a3\u6837\uff0c\u8fdb\u884c\u5206\u533a\u3001\u683c\u5f0f\u5316\u3001\u6302\u8f7d\u4f7f\u7528\u3002 Ansible\u4f7f\u7528lvg\u6a21\u5757\u6765\u521b\u5efa\u3001\u5220\u9664\u5377\u7ec4(VG)\uff0c\u4fee\u6539\u5377\u7ec4\u5927\u5c0f\u3002 \u5e38\u7528\u9009\u9879\uff1a \u200b vg\uff1a\u5b9a\u4e49\u5377\u7ec4\u540d\u3002vg\uff1avolume group \u200b pvs\uff1a\u7531\u54ea\u4e9b\u7269\u7406\u5377\u6784\u6210\u3002pvs\uff1aphysical volumes \u200b state\uff1a\u72b6\u6001\u3002present \u521b\u5efa\uff1babsent \u5220\u9664 # \u521b\u5efa\u7269\u7406\u5377 [root@web1 ~]# parted \/dev\/nvme0n2 mklabel gpt \u4fe1\u606f: You may need to update \/etc\/fstab. [root@web1 ~]# parted \/dev\/nvme0n2 mkpart primary 1 50% \u4fe1\u606f: You may need to update \/etc\/fstab. [root@web1 ~]# parted \/dev\/nvme0n2 mkpart primary 50% 100% [root@web1 ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sr0 11:0 1 1024M 0 rom nvme0n1 259:0 0 20G 0 disk \u251c\u2500nvme0n1p1 259:1 0 1G 0 part \/boot \u2514\u2500nvme0n1p2 259:2 0 19G 0 part \u251c\u2500rl-root 253:0 0 17G 0 lvm \/ \u2514\u2500rl-swap 253:1 0 2G 0 lvm [SWAP] nvme0n2 259:3 0 20G 0 disk \u251c\u2500nvme0n2p2 259:5 0 10G 0 part \u2514\u2500nvme0n2p1 259:6 0 10G 0 part nvme0n3 259:4 0 20G 0 disk # \u5b89\u88c5\u5de5\u5177 [root@pubserver ansible]# ansible web1 -m yum -a &#039;name=lvm2&#039; # \u5728web1\u4e0a\u521b\u5efa\u540d\u4e3amyvg\u7684\u5377\u7ec4 [root@pubs&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6],"tags":[],"class_list":["post-207","post","type-post","status-publish","format-standard","hentry","category-lixx"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/xianyijitan.top\/index.php?rest_route=\/wp\/v2\/posts\/207","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xianyijitan.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xianyijitan.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xianyijitan.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xianyijitan.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=207"}],"version-history":[{"count":1,"href":"https:\/\/xianyijitan.top\/index.php?rest_route=\/wp\/v2\/posts\/207\/revisions"}],"predecessor-version":[{"id":208,"href":"https:\/\/xianyijitan.top\/index.php?rest_route=\/wp\/v2\/posts\/207\/revisions\/208"}],"wp:attachment":[{"href":"https:\/\/xianyijitan.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xianyijitan.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xianyijitan.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}